• Stars
    star
    177
  • Rank 209,821 (Top 5 %)
  • Language
    Go
  • License
    GNU General Publi...
  • Created almost 7 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

"打一枪换一个地方" 一个HTTP代理

Gus-Proxy

"gus - 绝命毒师里的大毒枭"

Build Status Go Report Card

README.English


运行

# prepare the proxies
mkdir -p data
touch data/proxies.txt
# put your proxies in data/proxies.txt
# the format could be:
# socks5://127.0.0.1:1080
# http://user:[email protected]:1081
# socks4://127.0.0.1:1082
# direct://0.0.0.0
# ss://AEAD_CHACHA20_POLY1305:[email protected]:1083

# then:
sudo docker run --rm -ti --name gus-proxy \
    -p 8080:8080 \
    -v `pwd`/data:/data \
    wrfly/gus-proxy

思路

打一枪换一个地方

  1. 每次请求都从代理池中选取一个代理
  2. 但是这样会不会触发server端的验证,即session与IP匹配
  3. 但是如果server端有这种IP验证的话,就没必要用这东西了
  4. 要解决的是server限制某一IP访问频率的问题

没问题。

设计

  1. 程序对上层表现为一个HTTP代理
  2. 程序加载一个代理列表(HTTP/Socks5) [或者默认配置一个代理列表]
  3. 每次的请求都从代理列表中选取一个
  4. 选取的算法可能是轮询、随机、或其他目前没想到的
  5. 要验证proxy的可用性
  6. 每次请求替换UA
  7. 请求资源的时候,查询目标资源地址全部的IP,随机

效果

Gus-Running Curl-test

More Repositories

1

container-web-tty

Connect your containers via a web-tty
Go
233
star
2

bash_aliases

A project to collect useful bash aliases.
Shell
29
star
3

captcha_verify

简单验证码识别
Python
28
star
4

k8s-install.sh

k8s国内安装脚本: 不整那么复杂, 复制-粘贴-敲回车就好了.
Shell
22
star
5

yasuser

Yet another self-hosted URL shortener. | 短域名
Go
21
star
6

just-a-bot

WON'T follow any github users
Go
19
star
7

web-dns

Query DNS via HTTP Get
Go
18
star
8

et

Email tracker, give you a notification when someone opens your email.
Go
16
star
9

shadowbroker-auto

running fb script
Python
8
star
10

grpc-echo

Simple gRPC echo example
Go
8
star
11

micro-docker

一些Docker File, 基于alpine的微容器
PHP
8
star
12

gua

simple Golang command-line parser, if you don't need some fancy features, just guá it.
Go
8
star
13

hovers

http proxy over socks5 proxy
Go
6
star
14

check

check multiple errors/functions
Go
5
star
15

pubsub

golang memory pub-sub library
Go
3
star
16

simorse

Send mos code (USR1 and USR2) to communicate with the program
Go
3
star
17

dockerfiles

some dockerfiles
Dockerfile
2
star
18

10pic

10张内涵图
HTML
2
star
19

check-port-open-in-x-ways

Yeah, check port open in x ways.
JavaScript
2
star
20

xyv6

校园V6
CSS
2
star
21

golang-template

golang project template
Go
2
star
22

ecp

environment config parser | fill up the struct through the way you like
Go
2
star
23

bindata

Conver regular files into a single golang package
Go
2
star
24

dockerPractice

练手的Dockerfile和一些docker-compose.yml
Shell
2
star
25

reglib

docker registry lib
Go
1
star
26

bedis

builtin redis - bedis
Go
1
star
27

piu

pull images up to date
Go
1
star
28

auto_install_vsftpd_in_ubuntu

A simple shell to install vsftpd in Ubuntu.
Shell
1
star
29

bash-games

Shell
1
star
30

love-u.me

love-u
CSS
1
star