代理池,集
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxyPool/readme.md

70 lines
1.4 KiB

9 years ago
# gomitmproxy
9 years ago
8 years ago
gomitmproxy是想用golang语言实现的[mitmproxy](https://mitmproxy.org/),主要实现http代理,目前只实现了http代理和https抓包功能,差距甚远,加油。
9 years ago
## 可以用来干嘛?
* http代理
8 years ago
* http和https抓包
9 years ago
* 科学上网
8 years ago
## 将来要实现的功能
* 修改http(s)请求
* 重复请求
* 同时监听多端口
* 支持socks5、websocket等协议
* 界面支持终端和网页两种形式
9 years ago
## 安装使用
```bash
9 years ago
git clone https://github.com/sheepbao/gomitmproxy.git
cd gomitmproxy
go build
9 years ago
```
## 例子
* http代理
```bash
9 years ago
gomitmproxy
9 years ago
```
9 years ago
不带任何参数,表示http代理,默认端口8080,更改端口用 -port
9 years ago
* http抓包
```bash
9 years ago
gomitmproxy -m
9 years ago
```
9 years ago
![fetch http](https://raw.githubusercontent.com/sheepbao/gomitmproxy/develop/goproxy.png)
9 years ago
9 years ago
加 -m 参数,表示抓取http请求和响应
9 years ago
9 years ago
* http代理科学上网
9 years ago
9 years ago
首先你得有个墙外的服务器,如阿里香港的服务器,为图中的Server,假设其ip地址为:22.222.222.222
9 years ago
```bash
9 years ago
在Server执行:
gomitmproxy -port 8888
9 years ago
```
```bash
9 years ago
在你自己电脑执行:
gomitmproxy -port 8080 -raddr 22.222.222.222:8888
9 years ago
```
9 years ago
然后浏览器设置代理,ip为localhost,端口为8080,即可实现科学上网
9 years ago
![proxy](https://raw.githubusercontent.com/sheepbao/gomitmproxy/master/proxy.png)
8 years ago
## 最后
9 years ago
8 years ago
欢迎star和fork,一起学习交流。
9 years ago
## License
The 3-clause BSD License
- see LICENSE for more details