Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

ProxyChains-NG

$ proxychains4 Community Med Risk
rofl0r · Browser & Web · GPL-2.0 · macos / linux

proxychains4 (ProxyChains-NG) hooks TCP socket and DNS calls via LD_PRELOAD / DYLD_INSERT_LIBRARIES so tools lacking proxy support route through SOCKS4, SOCKS5, or HTTP proxies (proxychains4 -q -f proxychains.conf curl ...). Pass -q to keep wrapped stdout clean for JSON parsing; does not affect statically linked Go/Rust binaries or macOS SIP-protected system tools.

FCRS-1.0 Score
67 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install proxychains-ng
CLI vs MCP Decision CLI Only

Injects libproxychains4 into local child processes to redirect TCP sockets; MCP servers cannot intercept libc connect() calls of arbitrary CLI binaries.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

Runs non-interactively and offers -q quiet mode to avoid polluting wrapped command stdout, though -f config file is required and no structured diagnostics exist.

  • -q suppresses [proxychains] stdout/stderr noise
  • Requires proxychains.conf configuration file
Trust & Safety 16 / 25

Redirects child process TCP connections without root privileges, though proxychains.conf stores proxy passwords in plaintext and inherits the wrapped binary's side effects.

  • No root needed; plaintext proxy credentials in proxychains.conf
Setup & Portability 10 / 15

macOS/Linux only; macOS System Integrity Protection blocks hooks on /usr/bin/* binaries and statically linked Go binaries ignore LD_PRELOAD.

  • macOS SIP and static binaries bypass dynamic library preloading
Utility & Efficiency 12 / 15

Useful shim for legacy dynamically linked tools that ignore ALL_PROXY/HTTPS_PROXY environment variables.

  • Supports SOCKS4, SOCKS5, HTTP proxies, and proxy_dns
Maintenance & Lineage 7 / 10

Maintained community fork (rofl0r/proxychains-ng) under GPL-2.0.

  • Community repo rofl0r/proxychains-ng
Docs & Verifiability 7 / 10

README and commented proxychains.conf template explain chain modes (strict_chain, dynamic_chain, random_chain).

  • README and sample proxychains.conf

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Reads proxy host, port, and optional plaintext username/password from proxychains.conf (~/.proxychains/proxychains.conf or -f <file>).

Side Effects
Read-Only Remote Write
Cost & Quotas

Free, GPL-2.0 open-source C utility.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# ProxyChains-NG Agent Rules
- Always pass `-q` when wrapping JSON-producing CLIs so `[proxychains]` banner lines do not corrupt stdout.
- Specify `-f <path>` explicitly and note that macOS SIP (`/usr/bin/*`) and static Go binaries bypass `LD_PRELOAD`/`DYLD_INSERT_LIBRARIES` hooks.

Agent-Ready Command Recipes

Safe Read-Only Queries

Run a read-only curl check quietly via proxy
proxychains4 -q -f proxychains.conf curl -fsSL https://ifconfig.me

Suppresses ProxyChains banner output with -q and routes curl TCP/DNS traffic through proxychains.conf.

Strengths for Agents

  • + -q flag suppresses banner noise so wrapped tools still emit clean stdout.
  • + Works without root privileges on dynamically linked Linux/macOS binaries.

Caveats & Pitfalls

  • ! Silently fails to intercept statically linked binaries (many Go tools) and macOS SIP-protected /usr/bin/* commands.
  • ! Stores any proxy username/password in plaintext inside proxychains.conf.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI