Small fixes

This commit is contained in:
Roman Hergenreder 2020-02-06 23:27:29 +01:00
parent 80ce7d1ed1
commit 15f45be9d5
2 changed files with 2 additions and 1 deletions

@ -51,7 +51,7 @@ if __name__ == "__main__":
print("Supported types: bash, perl, python[2|3], php, ruby, netcat|nc, java, xterm") print("Supported types: bash, perl, python[2|3], php, ruby, netcat|nc, java, xterm")
exit(1) 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)) print("---PAYLOAD---\n%s\n---TTY---\n%s\n---------\n" % (payload, tty))
if payload_type == "xterm": if payload_type == "xterm":

@ -1,5 +1,6 @@
import socket import socket
import sys import sys
import os
import netifaces as ni import netifaces as ni
if len(sys.argv) < 2: if len(sys.argv) < 2: