Skip to content

Reverse Shell

7h30th3r0n3 edited this page Jan 29, 2026 · 3 revisions

🐚 Reverse Shell


Overview

RaspyJack can launch a reverse shell using ncat on port 4444.


Tools Used

  • ncat (Netcat from Nmap)

How It Works

  • Default Reverse picks the active interface, asks for the last IP octet, and connects to <target_ip>:4444 with /bin/bash.
  • Remote Reverse uses a hardcoded target (192.168.1.30:4444).

Setup / Requirements

  • ncat installed (via install_raspyjack.sh).
  • A listener must be running on the target:
nc -lvnp 4444

❓ FAQ

  • Q: The reverse shell doesn’t connect. Why?
    A: Confirm the listener is running, the target IP is correct, and there is network reachability.
  • Q: Can I change the port or target?
    A: Yes, edit the reverse shell functions in `raspyjack.py`.
  • Q: “ncat: command not found”.
    A: Install it with sudo apt install ncat.
  • Q: Connection refused.
    A: The listener isn’t running or a firewall blocks port 4444.
  • Q: It connects then immediately closes.
    A: The remote listener may be non-interactive or closes after receiving data.

Clone this wiki locally