bashbunny-payloads/payloads/library/remote_access/WindowsPersistentReverseShell
KeenanV 7f902403d4 Persistent Reverse Shells for MacOS and Windows 10 (#306) 2018-01-22 10:39:14 +11:00
..
README.md Persistent Reverse Shells for MacOS and Windows 10 (#306) 2018-01-22 10:39:14 +11:00
payload.txt Persistent Reverse Shells for MacOS and Windows 10 (#306) 2018-01-22 10:39:14 +11:00
persistence.vbs Persistent Reverse Shells for MacOS and Windows 10 (#306) 2018-01-22 10:39:14 +11:00
run.ps1 Persistent Reverse Shells for MacOS and Windows 10 (#306) 2018-01-22 10:39:14 +11:00

README.md

Windows Persistent Reverse Shell for Bash Bunny

  • Author: 0dyss3us (KeenanV)
  • Version: 1.1

Description

Opens a persistent reverse shell through NetCat on victim's Windows machine and connects it back to host attacker.

  • Targets Windows 10 (working on support for older versions)
  • Connection can be closed and reconnected at any time
  • Deploys in roughly 15-20 sec
  • Works with NetCat

Requirements

Have a working Bash Bunny :)

STATUS

LED STATUS
Purple Setup
Amber (Single Blink) Installing and running scripts
Green Finished

Installation and Execution

  1. Plug in Bash Bunny in arming mode
  2. Move files from WindowsPersistentReverseShell to either switch folder
  3. Download ncat from http://nmap.org/dist/ncat-portable-5.59BETA1.zip and place the downloaded ncat.exe file in the same switch folder.
  4. Edit the persistence.vbs file and replace ATTACKER_IP with attacker's IP and PORT with whichever port you like to use (I use 1337 😉)
  5. Edit the run.ps1 file and replace BashBunny with the volume name of your Bash Bunny
  6. Save the persistence.vbs file
  7. Unplug Bash Bunny and switch it to the position the payload is loaded on
  8. Plug the Bash Bunny into your victim's Windows machine and wait until the final light turns green (about 15-20 sec)
  9. Unplug the Bash Bunny and go to attacker's machine
  10. Listen on the port you chose in the persistence.vbs file on NetCat
  • Run the command nc -nlvp 1337 (replace the port with the port in persistence.vbs) * If using Windows as the attacker machine, you must move the same ncat.exe file downloaded in step 3 to any directory and use the command ncat instead of nc from that directory.
  1. Wait for connection (Should take no longer than 1 minute as the powershell command runs every minute)
  2. Once a Windows cmd prompt appears...YOU'RE DONE!! 😃 and you can disconnect and reconnect at any time as long as the user is logged in

Discussion

Click here for forum discussion