mirror of
https://github.com/hak5/packetsquirrel-payloads.git
synced 2025-12-19 17:58:49 +00:00
Example of sending email with bash variables
This commit is contained in:
17
payloads/library/exfiltration/Email-Sender/payload.sh
Normal file
17
payloads/library/exfiltration/Email-Sender/payload.sh
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user