ToolsFebruary 9, 20261 min readby 0xt0pus

Proxychains

Forces TCP connections through proxy servers like SOCKS4/5 for pivoting through networks


Proxychains

Description

Proxychains forces any TCP connection made by an application to go through a proxy (like SOCKS4/5 or HTTP). It is used for pivoting, routing traffic through SSH tunnels or SOCKS proxies.

Usage 1: Run Nmap Through Proxychains

Command:

proxychains nmap -sT -Pn -n 10.10.10.5 --top-ports 50

Command:

proxychains nmap -vvv -sT --top-ports=20 -Pn -n 10.4.50.64

Command (Port range scan):

sudo proxychains nmap -vvv -sT -p4870-4900 -Pn 172.16.181.217

Usage 2: Run SMBClient Through Proxychains

Command:

proxychains smbclient -L //172.16.50.217/ -U hr_admin --password=Welcome1234

Usage 3: Run Web Browser Through Proxychains

Command:

proxychains4 iceweasel

Usage 4: Run psql Through Proxychains

Command:

proxychains psql -h 10.4.50.215 -U postgres

Usage 5: Configure Proxychains

Edit the proxychains configuration file.

Command:

nano /etc/proxychains4.conf