Skip to content

Latest commit

 

History

History
82 lines (56 loc) · 2.29 KB

README.md

File metadata and controls

82 lines (56 loc) · 2.29 KB

PROXY-CHECK

Check if proxies are working (http, socks4 & socks5)

usage:

-h, --help                   Show this help
-s, --socks4                 Test socks4 proxies
-S, --socks5                 Test socks5 proxies
-H, --http                   Test http proxies
-i, --ip                     Test all proto if no proto is specified in input file
-r, --randomize-file         Shuffle proxies files
-t, --thread=NBR             Number of threads
-T, --timeout=SEC            Set timeout (default 3 seconds)
-u, --url=TARGET             url to test proxies
-f, --proxies-file=FILE      File to check proxy
-m, --max-valid=NBR          Stop when NBR valid proxies are found
-U, --proxies-url=URL        url with proxies file
-p, --dis-progressbar        Disable progress bar
-g, --github                 use github.com/mmpx12/proxy-list
-o, --output=FILE            File to write valid proxies
-v, --version                Print version and exit

Without -i|--ip flag local or remote file with proxy should be on format: proto://ip:port; If -i flag is set and no protocol is set for an ip, all protocols will be test.

If you disable the progress bar -p|--dis-progressbar you will have the old ouptut:

Examples:

Only check socks5 proxies from "https://raw.githubusercontent.com/mmpx12/proxy-list/master/proxies.txt" and stop after founding 30 valid proxies.

proxy-check -r -m 30 --socks5 -o valid-socks5.txt -g

Check all proxies from "/path/to/proxy" to url "www.urltotest.me" with a timeout f 6 second.

proxy-check -u www.urltotest.me -T 6 /path/to/proxy

Warnings:

By default this will check to "checkip.amazonaws.com" and some false negative might occurs (timeout, rate limit, flagged ip etc...).

Install

With one liner if $GOROOT/bin/ is in $PATH:

go install github.com/mmpx12/proxy-check@latest

or from source with:

git clone https://github.com/mmpx12/proxy-check.git
cd proxy-check
make
sudo make install
# or 
sudo make all

for termux you can do:

git clone https://github.com/mmpx12/proxy-check.git
cd proxy-check
make
make termux-install
# or
make termux-all

There is also prebuild binaries here.