You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kayos@tcp.direct 61b1bd53e0
Backport from dev
3 weeks ago
.github Create go.yml 1 month ago
example Update example module 4 weeks ago
.gitignore Major performance fixup 2 months ago
LICENSE Add: SetStaleTime, GetStaleTime, GetMaxWorkers 11 months ago
README.md Docs: Sauce 2 months ago
conductor.go Major performance fixup 2 months ago
daemons.go Major performance fixup 2 months ago
debug.go Name change 3 months ago
defs.go Finish implementing net.Dialer 1 month ago
dispense.go Name change 3 months ago
getters.go Implement a context dialer and improve example 4 weeks ago
go.mod Bump git.tcp.direct/kayos/common from 0.6.0 to 0.7.0 4 weeks ago
go.sum Bump git.tcp.direct/kayos/common from 0.6.0 to 0.7.0 4 weeks ago
list_management.go Name change 3 months ago
mrworldwide.go Name change 3 months ago
mystery_dialer.go Backport from dev 3 weeks ago
setters.go Name change 3 months ago
socks5_server.go Name change 3 months ago
stats.go Major performance fixup 2 months ago
util.go Major performance fixup 2 months ago
validator_engine.go Name change 3 months ago

README.md

Prox5

GoDoc Go Report Card IRC

SOCKS5/4/4a validating proxy pool + server

Prox5 is a golang library for managing, validating, and accessing thousands upon thousands of arbitrary SOCKS proxies.

Notably it features interface compatible dialer functions that dial out from different proxies for every connection, and a SOCKS5 server that utilizes those functions.


Initial Validation Sequence

  • TCP Dial to the endpoint
  • HTTPS GET request to a list of IP echo endpoints

Prox5 will then store the endpoint's outward appearing IP address and mark it as valid for use.

The Secret Sauce

What makes Prox5 special is largely the Mystery Dialer. This dialer satisfies the net.Dialer interface. Upon using the dialer to connect to and endpoint, Prox5:

  • Loads up a previously verified proxy
  • Attempts to make connection with the dial endpoint using said proxy
  • Upon failure, prox5:
    • repeats this process mid-dial
    • does not drop connection to the client
  • Once a proxy has been successfully used to connect to the target endpoint, prox5 passes the same net.Conn onto the client

Accessing Validated Proxies

  • Retrieve validated 4/4a/5 proxies as simple strings for generic use
  • Use one of the dialer functions with any golang code that calls for a net.Dialer
  • Spin up a SOCKS5 server that will then make rotating use of your validated proxies

The way you choose to use this lib is yours. The API is fairly extensive for you to be able to customize runtime configuration without having to do any surgery.

Things like the amount of validation workers that are concurrently operating, timeouts, and proxy re-use policies may be tuned in real-time. please read the docs.


This project is in development.

It "works" and has been used in "production", but still needs some love.

Please break it and let me know what broke.

See the docs and the example for more details.