Post Exploitation
ProxyChains forces TCP connections made by arbitrary applications to follow user-configured proxy networks (such as TOR or SOCKS4/5 configurations), useful for obfuscation and internal pivoting.
sudo apt install proxychains4
proxychains4 [program] [arguments]
ProxyChains is a UNIX tool that forces network connections initiated by any TCP application to follow through user-defined proxy chains. It is essential for pivoting through networks and anonymizing penetration testing tools.
By intercepting the connect(), sendto(), and resolver functions via LD_PRELOAD, ProxyChains transparently routes traffic through proxy chains without requiring application modifications.
proxychains firefoxLaunch a program with its TCP connections forced through the proxy chainproxychains4 nmap -sT -Pn 10.10.10.10Run a TCP connect scan tunneled through the proxy chainproxychains -q curl http://example.comRun curl through the chain in quiet mode (suppress proxychains output)proxychains -f /path/to/proxychains.conf nmap 10.10.10.10Use a specific configuration file instead of the defaultproxychains ssh <USER>@10.10.10.10Tunnel an outbound SSH session through the proxy chainproxychains nc 10.10.10.10 4444Route a raw TCP netcat connection through the chainproxychains wget http://example.com/fileDownload a file over the proxy chainproxychains sqlmap -u http://10.10.10.10/page?id=1Proxy a sqlmap request through the chain for anonymity/pivotproxychains4 -q -f /etc/proxychains4.conf smbclient -L 10.10.10.10Enumerate SMB shares over the proxy chain quietlycat /etc/proxychains4.confView the active proxychains-ng configurationsudo nano /etc/proxychains4.confEdit the proxychains configuration (chain mode, DNS, ProxyList)socks5 127.0.0.1 1080ProxyList entry: route through a local SOCKS5 proxy (e.g. an SSH -D tunnel)socks4 127.0.0.1 9050ProxyList entry: route through a SOCKS4 proxy (e.g. Tor default port)http 127.0.0.1 8080ProxyList entry: route through an HTTP CONNECT proxy (e.g. Burp)socks5 127.0.0.1 1080 <USER> <PASS>ProxyList entry with SOCKS5 username/password authenticationdynamic_chainConfig directive: skip dead proxies and chain the live ones in orderstrict_chainConfig directive: use all proxies in order; fail if any is downrandom_chainConfig directive: use a random subset of proxies for each connectionchain_len = 2Config directive: number of random proxies to use with random_chainproxy_dnsConfig directive: resolve DNS through the proxy to prevent DNS leakslocalnet 192.168.1.0/255.255.255.0Config directive: bypass the proxy for a directly reachable local subnettcp_read_time_out 15000Config directive: TCP read timeout in millisecondstcp_connect_time_out 8000Config directive: TCP connect timeout in millisecondsproxychains proxychains nmap 10.10.10.10Nest proxychains to demonstrate chaining, though a single config is preferredproxychains4 --helpDisplay proxychains-ng usage and optionsRoute nmap through Tor or SOCKS proxies.
Chain through multiple compromised hosts.
Hide source IP through proxy chains.
Reach internal networks via intermediate hosts.
Post Exploitation
Chisel is a fast TCP/UDP tunnel utility that encapsulates traffic over an HTTP transport channel, secured via SSH. It is useful for traversing firewall boundaries and pivoting inside network environments.
Post Exploitation
sshuttle acts as a transparent proxy server that forwards traffic over an SSH connection, configuring local routing rules without requiring administrator privileges on the remote server host.
Maintaining Access
Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them, widely used for establishing shells, port forwarding, and encrypted connections.
Post Exploitation
WinPEAS is a script designed to discover local privilege escalation paths on Windows environments. It audits configurations, user security rights, system vulnerabilities, and active processes.
Post Exploitation
CrackMapExec (CME) is a post-exploitation tool for pentesting Windows and Active Directory networks. It can enumerate users, spray passwords, execute commands, and move laterally.
Post Exploitation
NetExec (formerly CrackMapExec successor) is a post-exploitation tool for enumerating and attacking Active Directory environments. It automates SMB, WinRM, LDAP, and SSH attacks across large networks with support for Kerberos, NTLM, and pass-the-hash authentication.
A comprehensive guide to lateral movement techniques in Windows networks including pass-the-hash, pass-the-ticket, PSExec, WMI, DCOM, and WinRM for authorized penetration testing.
Active Directory · AdvancedAn in-depth look at pass-the-hash attacks against NTLM authentication, how they work, real-world exploitation scenarios, detection techniques, and defense strategies.
Active Directory · AdvancedA comprehensive introduction to Microsoft Active Directory covering domain services, LDAP, Group Policy, authentication protocols, and security fundamentals for Windows enterprise environments.
Active Directory · AdvancedLearn how to use BloodHound and SharpHound for Active Directory reconnaissance, attack path analysis, privilege escalation detection, and security assessment.
The console displays the routing path for each connection attempt, prefixed with [proxychains], confirming whether the network request succeeded or failed.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.