Network pivoting tunneling

From NoorQureshi/security-skills · View interactive version

Network pivoting tunneling is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Pivot into internal networks from a foothold — tunnels, port-forwards, and proxychains. Load when a host has a second NIC / reaches an internal subnet you can't hit directly, on "pivot", "internal network", "double-hop", after a foothold in a multi-host lab.

How to use this skill

Skill file

Pivoting & tunneling

When it applies

You have a foothold on host A, and the objective (or the next host B) is only reachable from

A's network. You need to route your tools through A.

Why it works

The foothold sits inside the trust boundary. A tunnel turns that host into a router/proxy so

your attack host can reach internal services as if it were on that subnet.

Method

  1. Discover internal reach from the foothold: ip a/ipconfig, arp -a, and scan the

internal range for live hosts/ports (upload a static scanner or use built-ins).

  1. Pick a tunnel:

a clean interface — all tools work natively, no proxychains.

(-L 8080:internal:80, -D 1080 for SOCKS, -R to expose your listener to the target).

internal port — handy when only socat is present.

connectaddress=<internal> connectport=80, or plink.exe -D 1080 user@$LHOST` for SOCKS.

  1. Route tools: with ligolo, just target the internal IP; with SOCKS, prefix proxychains

(set the port in /etc/proxychains4.conf) — note UDP/ICMP don't traverse SOCKS.

  1. Chain hops: repeat from B to reach a third subnet (double pivot). ssh -J chains jump hosts;

ligolo just adds another route.

Gotchas

Verify success

Your attack host reaches an internal-only host/service through the tunnel (a scan or login that

was impossible directly now works).

References

ligolo-ng & chisel docs; ad-pivot-arsenal (this library) for the AD-focused arsenal.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.