Jump to content

Testing Payloads in virtual machines


Recommended Posts


I'm looking for a way to test payloads in virtual machines. Unfortunately I'm failing by now...

I tried to start the payload scripts with

sleep 10

before setting the BashBunny to an attack mode. 

The idea was that I have 10 sec to connect the device to the virtual machine. But it doesn't seem to work... Payload pauses (LED isn't Blue) and then runs script without me having the chance to connect it to the vm...

Has anybody a idea or uses the BashBunny with VMs for testing?

Link to comment
Share on other sites

I personally use VirtualBox and set my BB to switch 1 or 2 before adding to the USB settings in the VM. This way, while your VM is running it'll automatically connect to the VM instead of your host OS.




The steps would be...

  1. Start your VM
  2. Change BB to switch 1 or 2 with a simple payload
  3. Connect it to the computer
  4. Add the USB device to the list as shown above. Click OK
  5. Remove BB
  6. Insert BB again and now it'll be connected to the VM

Note: Changing the BB to arming mode will open it in the host OS, unless you had that to your VM USB settings too.

  • Upvote 1
Link to comment
Share on other sites

I've been using virtual machines almost exclusively for testing. In my experience, the Bunny has no problem waiting for me to click the appropriate button in VMware's "Connect to..." prompt. I plug in the Bunny, there's a delay, VMware asks if I want to connect the newly discovered device to my host or VM X, Y, or Z and I click the appropriate option. After a brief pause, the Windows VM will sound the typical "ker-plunk" new device sound and the payload launches.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...