> ## Documentation Index
> Fetch the complete documentation index at: https://notes.chaelsoo.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Proxychains

Routes tool traffic through a SOCKS proxy: pair with Chisel or SSH dynamic forwarding to reach internal networks.

## Config (/etc/proxychains.conf)

Point proxychains at whichever SOCKS proxy is active: change the port to match your tunnel setup.

```wrap theme={"theme":{"light":"night-owl","dark":"night-owl"}}
socks5 127.0.0.1 1080
```

## Usage

Prepend `proxychains` to any command to route it through the tunnel: note that nmap requires `-sT -Pn` since SYN scans don't work over SOCKS.

```bash wrap theme={"theme":{"light":"night-owl","dark":"night-owl"}}
proxychains nmap -sT -Pn <IP>
proxychains nxc smb <IP> -u user -p pass
proxychains evil-winrm -i <IP> -u user -p pass
```

## SSH Dynamic Forwarding

Opens a SOCKS5 proxy on localhost without needing chisel: ideal when you already have SSH access to the pivot.

```bash wrap theme={"theme":{"light":"night-owl","dark":"night-owl"}}
ssh -D 1080 user@<IP>
```
