From 18e36a88b03108900483a03c49ba263a3b045f28 Mon Sep 17 00:00:00 2001 From: GermanNoob Date: Sun, 11 Feb 2018 12:01:33 +0100 Subject: [PATCH] Create sewait.sh --- payloads/extensions/sewait.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 payloads/extensions/sewait.sh diff --git a/payloads/extensions/sewait.sh b/payloads/extensions/sewait.sh new file mode 100644 index 000000000..8b5ee9f96 --- /dev/null +++ b/payloads/extensions/sewait.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Social engineering wait by GermanNoob +# +# This extension can be used if no hidden access to the victim computer is possible and you have to social engineer your way to the target +# This script will mount as a standard drive and wait until the attacker starts the real payload by changing the switch position +# +# This is just a small extension to DarrenKitchen's WAIT + +function SEWAIT() { + LED SPECIAL + ATTACKMODE STORAGE + GET SWITCH_POSITION + TEST=$SWITCH_POSITION + LED SPECIAL2 + while true + do GET SWITCH_POSITION + if [ $SWITCH_POSITION != $TEST ]; then break; fi + sleep 1 + done +} + +export -f SEWAIT