ReverseSocks5

command module
v0.0.0-...-6894e73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 13 Imported by: 0

README

ReverseSocks5

Reverse SOCKS5 proxy in Golang. Could be useful to bypass firewalls.

Build

Build with garble to help avoid AV detections, or don't, but Defender will probably destroy the binary and get angry.

go install mvdan.cc/garble@latest
garble -tiny build .

# Cross-compile for Linux from Windows
$Env:GOOS = "linux"; $Env:GOARCH = "amd64"; garble -tiny build .

Usage

Usage of ReverseSocks5.exe:
  -connect string
        Connect address for socks agent address:port
  -listen string
        Listen address for socks agents address:port (default ":10443")
  -password string
        Password used for SOCKS5 authentication. No authentication required if not configured.
  -psk string
        Pre-shared key for encryption and authentication between the agent and server (default "password")
  -socks string
        Listen address for socks server address:port (default "127.0.0.1:1080")
  -username string
        Username used for SOCKS5 authentication

Start Server

Example starting the server This will open the SOCKS5 port on 127.0.0.1:1080 and listen for an agent on :10443. Note the SOCKS5 port will only be accessible once an agent connects.

Start Agent

Example starting the agent This will connect to the server and be the egress point for the SOCKS5 traffic, effectively exposing the internal network of the agent to anyone who can access the SOCKS5 port on the server.

Configure a Proxy

Example proxy configuration Note that Firefox is running on the same machine as the SOCKS5 server. This will cause Firefox (using the Proxy SwitchyOmega extension) to make all connections using the SOCKS5 server. On Linux, a common tool to access the SOCKS5 proxy is proxychains4.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL