proxyutils

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 13 Imported by: 0

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