https://github.com/sloweax/proxyrot
rotating proxy server
https://github.com/sloweax/proxyrot
proxy-chain proxy-rotator rotating-proxy socks socks5 socks5-server
Last synced: about 1 year ago
JSON representation
rotating proxy server
- Host: GitHub
- URL: https://github.com/sloweax/proxyrot
- Owner: sloweax
- License: mit
- Created: 2024-04-06T21:52:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T18:29:55.000Z (over 1 year ago)
- Last Synced: 2025-04-13T01:53:28.072Z (about 1 year ago)
- Topics: proxy-chain, proxy-rotator, rotating-proxy, socks, socks5, socks5-server
- Language: C
- Homepage:
- Size: 77.1 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Usage
```
usage: proxyrot [OPTION...]
OPTION:
-h,--help shows usage and exits
-v,--version shows version and exits
-P,--proxies FILE add proxies from FILE
-n,--no-auth allow no auth authentication
-u,--userpass USER:PASS use USER:PASS as authentication
-p,--port PORT listen on PORT (1080 by default)
-a,--addr ADDR bind on ADDR (127.0.0.1 by default)
-w,--workers WORKERS number of WORKERS (8 by default)
-t,--timeout SECONDS set connection timeout (10 by default)
-r,--retry if proxy connection fail, try another
```
## Build
Make sure you have `gcc` and `make` installed
```
git clone https://github.com/sloweax/proxyrot
cd proxyrot
make install
```
## Example
```
$ cat proxies
# protocol host port [options]
socks5 77.77.77.77 9050
socks5 11.22.33.44 123 user pass
socks5 proxy.com 1080 user
# you can also chain proxies
socks5 1.2.3.4 user pass | socks5 4.3.2.1
```
```
$ proxyrot -n -P proxies
listening on 0.0.0.0:1080
```
```
$ for i in {1..10}; do curl ifconfig.me -x socks5://127.0.0.1:1080; echo; done
77.77.77.77
11.22.33.44
43.85.12.2
4.3.2.1
77.77.77.77
11.22.33.44
43.85.12.2
4.3.2.1
...
```