GithubHelp home page GithubHelp logo

mmpx12 / proxy-check Goto Github PK

View Code? Open in Web Editor NEW
72.0 6.0 13.0 135 KB

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

Makefile 4.34% Go 95.66%
proxy proxies proxy-checker pentest proxies-checker golang go

proxy-check's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.