yunginnanet / prox5

🧮 SOCKS5/4/4a 🌾 validating proxy pool and upstream SOCKS5 server for 🤽 LOLXDsoRANDum connections 🎋
https://git.tcp.direct/kayos/prox5
MIT License
75 stars 6 forks source link
bypass enumeration go golang proxy proxy-pool proxy-server socks socks4 socks4a socks5 stealth

Prox5

### SOCKS5/4/4a validating proxy pool + SOCKS5 server Animated Screenshot of Prox5 Example [![GoDoc](https://godoc.org/git.tcp.direct/kayos/prox5?status.svg)](https://pkg.go.dev/git.tcp.direct/kayos/prox5) [![Go Report Card](https://goreportcard.com/badge/github.com/yunginnanet/prox5)](https://goreportcard.com/report/github.com/yunginnanet/prox5) [![IRC](https://img.shields.io/badge/ircd.chat-%23tcpdirect-blue.svg)](ircs://ircd.chat:6697/#tcpdirect) [![Test Status](https://github.com/yunginnanet/prox5/actions/workflows/go.yml/badge.svg)](https://github.com/yunginnanet/prox5/actions/workflows/go.yml) ![five](https://img.shields.io/badge/fhjones-55555-blue) `import git.tcp.direct/kayos/prox5` Prox5 is a golang library for managing, validating, and utilizing a very large amount 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.

[!CAUTION]

Using prox5 to proxy connections from certain offsec tools may cause denial of service. Please spazz out responsibly.

e.g: https://youtu.be/qVRFnxjD7o8


Table of Contents

  1. Overview
    1. Validation Engine
    2. Auto Scaler
    3. Rate Limiting
    4. Accessing Validated Proxies
  2. Additional info
    1. The Secret Sauce
    2. External Integrations
  3. Status and Final Thoughts

Overview

Validation Engine

1) TCP Dial to the endpoint, if successful, reuse net.Conn down for step 2 2) HTTPS GET request to a list of IP echo endpoints 3) Store the IP address discovered during step 2 4) Allocate a new prox5.Proxy type || update an existing one, store latest info 5) Enqueue a pointer to this proxy.Proxy instance, instantiating it for further use

Auto Scaler

The validation has an optional auto scale feature that allows for the automatic tuning of validation worker count as more proxies are dispensed. This feature is still new, but seems to work well. It can be enabled with [...].EnableAutoScaler().

Please refer to the autoscale related items within the documentation for more info.

Rate Limiting

Using Rate5, prox5 naturally reduces the frequency of proxies that fail to validate. It does this by reducing the frequency proxies are accepted into the validation pipeline the more they fail to verify or fail to successfully connect to an endpoint. This is not yet adjustable, but will be soon. See the documentation for Rate5, and the source code for this project (defs.go is a good place to start) for more info.

Accessing Validated Proxies


Additional info

The Secret Sauce

What makes Prox5 special is largely the Mystery Dialer. This dialer satisfies the net.Dialer and ContextDialer interfaces. The implementation is a little bit different from your average dialer. Here's roughly what happens when you dial out with a ProxyEngine;

External Integrations

Mullvad Take a look at [mullsox](https://git.tcp.direct/kayos/mullsox) for an easy way to access all of the mullvad proxies reachable from any one VPN endpoint. It is trivial to feed the results of `GetAndVerifySOCKS` into prox5. Here's a snippet that should just about get you there: ```golang package main import ( "os" "time" "git.tcp.direct/kayos/mullsox" "git.tcp.direct/kayos/prox5" ) func main() { p5 := prox5.NewProxyEngine() mc := mullsox.NewChecker() if err := mc.Update(); err != nil { println(err.Error()) return } incoming, _ := mc.GetAndVerifySOCKS() var count = 0 for line := range incoming { if p5.LoadSingleProxy(line.String()) { count++ } } if count == 0 { println("failed to load any proxies") return } if err := p5.Start(); err != nil { println(err.Error()) return } go func() { if err := p5.StartSOCKS5Server("127.0.0.1:42069", "", ""); err != nil { println(err.Error()) os.Exit(1) } }() time.Sleep(time.Millisecond * 500) println("proxies loaded and socks server started") } ```
ProxyBonanza Take a look at [ProxyGonanza](https://git.tcp.direct/kayos/proxygonanza) _(TODO: code example here)_

Status and Final Thoughts

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.

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 see [the docs](https://pkg.go.dev/git.tcp.direct/kayos/prox5) and the [example](example/main.go) for more details.**