diff --git a/payloads/library/rdp_checker/payload.txt b/payloads/library/rdp_checker/payload.txt index 92d87984..28262165 100644 --- a/payloads/library/rdp_checker/payload.txt +++ b/payloads/library/rdp_checker/payload.txt @@ -1,43 +1,52 @@ # Title: RDP Checker for Bash Bunny # Author: Hak5Darren -# Version: 1.0 +# Version: 1.1 +# Target: Windows +# Category: Enumeration # # Checks whether RDP is enabled on target machine # # REQUIREMENTS -# impacket installed in /pentest (run tools-installer if not) +# ============ +# Needs impacket to be copied to /tools/impacket and installed +# Option A: +# 1. Download impacket from https://github.com/CoreSecurity/impacket +# 2. Copy impacket folder to /tools on the Bash Bunny flash drive +# 3. Boot Bash Bunny into arming mode and connect to console via serial +# 4. Issue "python /tools/impacket/setup.py install" +# Option B: +# 1. Download impacket deb package +# 2. Copy impacket.deb to /tools on the Bash Bunny flash drive +# 3. Boot Bash Bunny into arming mode. Impacket will install automatically. # # LED STATUS -# white (blinking)...dependencies not installed -# purple.............setup -# amber (blinking)...scanning -# red................RDP not enabled -# green..............RDP enabled +# ========== +# FAIL..............Failed to find dependencies +# SETUP.............Setting up attack +# ATTACK............Scanning +# GREEN SUCCESS.....RDP Enabled +# FAIL2.............RDP Not Enabled -# Check for dependencies. If not met, blink white and end. -if [ ! -d /pentest/impacket/ ]; then - LED R G B 100 - exit 1 -fi -# Setup Ethernet -LED R B +######## INITIALIZATION ######## + +REQUIRETOOL impacket +LED SETUP ATTACKMODE RNDIS_ETHERNET # ATTACKMODE ECM_ETHERNET +GET TARGET_IP -# Get $TARGET_IP from Bunny Helpers -source bunny_helpers.sh -# Start scan -LED G R 100 -/pentest/impacket/examples/rdp_check.py $TARGET_IP >> /tmp/rdp_check +######## ATTACK ######## +LED ATTACK +python /tools/impacket/examples/rdp_check.py $TARGET_IP >> /tmp/rdp_check # Check scan results and set LED red or green accordingly if grep Granted /tmp/rdp_check then # RDP is enabled -LED G +LED G SUCCESS else # RDP is not enabled -LED R +LED FAIL2 fi diff --git a/payloads/library/rdp_checker/readme.md b/payloads/library/rdp_checker/readme.md index 4e88e4f6..83cb248f 100644 --- a/payloads/library/rdp_checker/readme.md +++ b/payloads/library/rdp_checker/readme.md @@ -1,26 +1,29 @@ -# RDP Checker for Bash Bunnys +# RDP Checker for Bash Bunny -Author: Hak5Darren -Version: Version 1.0 +- Title: RDP Checker for Bash Bunny +- Author: Hak5Darren +- Version: 1.1 +- Target: Windows +- Category: Enumeration ## Description Checks whether RDP is enabled on target machine -Green=Enabled. Red=Disables. +Green=Enabled. Red=Disabled. ## Requirements -impacket must be installed in /pentest (run tools-installer if not) +impacket must be installed and setup in /tools ## STATUS -| LED | Status | -| ---------------- | ------------------------------------- | -| White (blinking) | Dependencies not installed. | -| Purple | Setup. | -| Amber (blinking) | Scanning | -| Red | RDP not enabled. | -| Green | RDP enabled. | +| LED | Status | +| ------------- | ----------------------------- | +| FAIL | Failed to find dependencies | +| SETUP | Setting up attack | +| ATTACK | Scanning | +| GREEN SUCCESS | RDP Enabled | +| FAIL2 | RDP Not Enabled | ## Discussion