Update payload.txt

it's green instead of white
This commit is contained in:
WatskeBart
2017-03-03 17:03:46 +01:00
committed by GitHub
parent 98fd9ef085
commit 74b34e1e59

View File

@@ -1,55 +1,55 @@
#!/bin/bash #!/bin/bash
# #
# Title: Nmapper for Bash Bunny # Title: Nmapper for Bash Bunny
# Author: Hak5Darren # Author: Hak5Darren
# Version: 1.0 # Version: 1.0
# #
# Scans target with nmap using specified options # Scans target with nmap using specified options
# Saves sequential logs to mass storage loot folder # Saves sequential logs to mass storage loot folder
# #
# Red ...........Setup # Red ...........Setup
# Red Blinking...Setup Failed. Target did not obtain IP address. Exit. # Red Blinking...Setup Failed. Target did not obtain IP address. Exit.
# Amber..........Scanning # Amber..........Scanning
# White..........Switching to Mass Storage (optional) # White..........Switching to Mass Storage (optional)
# Green..........Finished # Green..........Finished
# #
# See nmap --help for options. Default "-O --fuzzy" profiles target OS. # See nmap --help for options. Default "-O --fuzzy" profiles target OS.
NMAP_OPTIONS="-O --fuzzy" NMAP_OPTIONS="-O --fuzzy"
LOOTDIR=/root/udisk/loot/nmap LOOTDIR=/root/udisk/loot/nmap
# Set LED Red while setting up attack # Set LED Red while setting up attack
LED R LED R
# Use RNDIS for Windows. Mac/*nix use ECM_ETHERNET # Use RNDIS for Windows. Mac/*nix use ECM_ETHERNET
ATTACKMODE RNDIS_ETHERNET ATTACKMODE RNDIS_ETHERNET
#ATTACKMODE ECM_ETHERNET #ATTACKMODE ECM_ETHERNET
# Source bunny_helpers.sh to get environment variable TARGET_IP and TARGET_HOSTNAME # Source bunny_helpers.sh to get environment variable TARGET_IP and TARGET_HOSTNAME
source bunny_helpers.sh source bunny_helpers.sh
# Setup named logs in loot directory # Setup named logs in loot directory
mkdir -p $LOOTDIR mkdir -p $LOOTDIR
HOST=${TARGET_HOSTNAME} HOST=${TARGET_HOSTNAME}
# If hostname is blank set it to "noname" # If hostname is blank set it to "noname"
[[ -z "$HOST" ]] && HOST="noname" [[ -z "$HOST" ]] && HOST="noname"
COUNT=$(ls -lad $LOOTDIR/$HOST*.log | wc -l) COUNT=$(ls -lad $LOOTDIR/$HOST*.log | wc -l)
COUNT=$((COUNT+1)) COUNT=$((COUNT+1))
# Check target IP address. If unset, blink RED and end. # Check target IP address. If unset, blink RED and end.
if [ -z "${TARGET_IP}" ]; then if [ -z "${TARGET_IP}" ]; then
LED R 100 LED R 100
exit 1 exit 1
fi fi
# Set LED, nmap target and sync filesystem before optionally switching to mass storage # Set LED, nmap target and sync filesystem before optionally switching to mass storage
LED G R LED G R
nmap $NMAP_OPTIONS $TARGET_IP >> $LOOTDIR/$HOST-$COUNT.log nmap $NMAP_OPTIONS $TARGET_IP >> $LOOTDIR/$HOST-$COUNT.log
sync sync
# Optionally become mass storage when scan completes # Optionally become mass storage when scan completes
#LED R G B #LED R G B
#ATTACKMODE STORAGE #ATTACKMODE STORAGE
# Payload complete. Set LED white # Payload complete. Set LED green
LED G LED G