jessicano1
Digital Nomad
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
300 XP
So guys I have a Python stub reverse shell payload.
When I execute the Python file in VS Code on my target computer it generates a stable backdoor to my machine.
But in reality no one is gonna execute .py files and so I tried to convert it to .exe using pyinstaller.
I used the command
The problem is the .exe file generated opens up the command prompt and crashes immediately.
The result I get on my Kali machine is :
Then a tried generating a Window based exe using
On running .exe file I get following error:
With output on Kali Machine as:
So, guys please help me in creating a stable executable file (.exe) so that I can generate a backdoor through it!
When I execute the Python file in VS Code on my target computer it generates a stable backdoor to my machine.
But in reality no one is gonna execute .py files and so I tried to convert it to .exe using pyinstaller.
I used the command
Code:
pyinstaller --onefile --console stub.py .
The result I get on my Kali machine is :
Code:
[*] 192.168.75.1 - Meterpreter session 12 closed. Reason: Died
[-] Meterpreter session 12 is not valid and will be closed
Code:
pyinstaller --onefile --windowed stub.py
Loading…
ibb.co
Code:
[*] Sending stage (24768 bytes) to 192.168.75.1
[*] 192.168.75.1 - Meterpreter session 14 closed. Reason: Died
[-] Meterpreter session 14 is not valid and will be closed