Jump to content

Testing Payloads in virtual machines


GermanNoob
 Share

Recommended Posts

Hi,

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

LED B
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.

58cc14eb6280b_ScreenShot2017-03-17at12_51_51PM.png.c8b35db1630735577452f09f68636f99.png

 

58cc14eeecd54_ScreenShot2017-03-17at12_52_55PM.png.710fec1ccf068801c7c7eea19b375aeb.png

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.

Guest
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.

 Share

  • Recently Browsing   0 members

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