Soxy
Serveur proxy SOCKS5 léger pour un routage rapide du trafic lors des missions. Lightweight SOCKS5 proxy server for quick traffic routing during engagements.
↗ https://github.com/nakabonne/soxyOverview
Soxy is a minimal SOCKS5 proxy server. It’s useful for quick SOCKS tunnelling setups when a lightweight, single-binary solution is needed on a pivot host.
Common Usage
Start SOCKS5 proxy on default port (1080)
soxy
Custom port
soxy -p 8080
Bind to specific interface
soxy -l 0.0.0.0 -p 1080
With authentication
soxy -u username -pw password
Configure proxychains to use it
# /etc/proxychains4.conf
[ProxyList]
socks5 <pivot_host_ip> 1080
Then use any tool through the proxy:
proxychains nmap -sT -Pn 10.10.20.0/24
proxychains nxc smb 10.10.20.0/24 -u admin -p pass
Alternative: SSH Dynamic Port Forwarding
When SSH access is available, the built-in dynamic port forwarding is often simpler:
Create SOCKS5 proxy via SSH
ssh -D 1080 -N user@pivot-host
# Then configure proxychains to use 127.0.0.1:1080
Help / Man page
soxy [options]
OPTIONS:
-l HOST Bind address (default: 127.0.0.1)
-p PORT Listening port (default: 1080)
-u USER SOCKS5 username for auth
-pw PASS SOCKS5 password for auth
-v Verbose logging
--version Show version
PROTOCOL:
SOCKS5 (RFC 1928)
Supports: CONNECT command (TCP tunnelling)
USAGE WITH PROXYCHAINS:
Add to /etc/proxychains4.conf:
socks5 <host> <port> [user] [password]
Vue d’ensemble
Soxy est un serveur proxy SOCKS5 minimal. Il est utile pour des configurations de tunneling SOCKS rapides quand une solution légère en binaire unique est nécessaire sur un hôte pivot.
Utilisation courante
# Démarrer le proxy SOCKS5 sur le port par défaut (1080)
soxy
# Port personnalisé
soxy -p 8080
# Écouter sur une interface spécifique
soxy -l 0.0.0.0 -p 1080
# Avec authentification
soxy -u username -pw password
Configurer proxychains pour l’utiliser
# /etc/proxychains4.conf
[ProxyList]
socks5 <pivot_host_ip> 1080
Puis utiliser n’importe quel outil à travers le proxy :
proxychains nmap -sT -Pn 10.10.20.0/24
proxychains nxc smb 10.10.20.0/24 -u admin -p pass
Alternative : Redirection de port dynamique SSH
Quand l’accès SSH est disponible, la redirection de port dynamique intégrée est souvent plus simple :
# Créer un proxy SOCKS5 via SSH
ssh -D 1080 -N user@pivot-host
# Puis configurer proxychains pour utiliser 127.0.0.1:1080
Aide / Page de manuel
soxy [options]
OPTIONS:
-l HOST Bind address (default: 127.0.0.1)
-p PORT Listening port (default: 1080)
-u USER SOCKS5 username for auth
-pw PASS SOCKS5 password for auth
-v Verbose logging
--version Show version
PROTOCOL:
SOCKS5 (RFC 1928)
Supports: CONNECT command (TCP tunnelling)
USAGE WITH PROXYCHAINS:
Add to /etc/proxychains4.conf:
socks5 <host> <port> [user] [password]