proxyutils

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 13 Imported by: 10

README

proxy utils

Documentation

Index

Constants

View Source
const (
	SOCKS5 = "socks5"
	HTTP   = "http"
	HTTPS  = "https"
)

Variables

View Source
var ProxyProbeConcurrency = 8

ProxyProbeConcurrency (default 8)

Functions

func GetAnyAliveProxy

func GetAnyAliveProxy(timeoutInSec int, proxies ...string) (string, error)

GetAnyAliveProxy takes proxies as input and returns the first alive proxy or returns error if all of them not alive

func GetProxyURL

func GetProxyURL(proxyAddr string) (url.URL, error)

GetProxyURL returns a Proxy URL after validating if given proxy url is valid

func IsBurp

func IsBurp(proxyURL string) (bool, error)

IsBurp checks if the target proxy URL is burp suite

func ValidateOne

func ValidateOne(proxies ...string) (string, error)

ValidateOne returns the first valid proxy from a list of proxies by setting up a test connection with scanme.sh

Types

This section is empty.

Jump to

Keyboard shortcuts

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