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.
zhengbaoyang
9f460785b9
|
8 years ago | |
---|---|---|
cache.go | 8 years ago | |
config.go | 8 years ago | |
dump.go | 8 years ago | |
genKey.go | 8 years ago | |
gomitmproxy-ca-cert.pem | 8 years ago | |
gomitmproxy-ca-pk.pem | 8 years ago | |
gomitmproxy.go | 8 years ago | |
goproxy.png | 9 years ago | |
listener.go | 8 years ago | |
mitm.go | 8 years ago | |
proxy.png | 9 years ago | |
readme.md | 8 years ago | |
tcolor.go | 8 years ago |
readme.md
gomitmproxy
gomitmproxy是想用golang语言实现的mitmproxy,主要实现http代理,目前只实现了http代理和https抓包功能,差距甚远,加油。
可以用来干嘛?
- http代理
- http和https抓包
- 科学上网
安装使用
git clone https://github.com/sheepbao/gomitmproxy.git
cd gomitmproxy
go build
例子
- http代理
gomitmproxy
不带任何参数,表示http代理,默认端口8080,更改端口用 -port
- http抓包
gomitmproxy -m
加 -m 参数,表示抓取http请求和响应
-
http代理科学上网
首先你得有个墙外的服务器,如阿里香港的服务器,为图中的Server,假设其ip地址为:22.222.222.222
在Server执行:
gomitmproxy -port 8888
在你自己电脑执行:
gomitmproxy -port 8080 -raddr 22.222.222.222:8888
然后浏览器设置代理,ip为localhost,端口为8080,即可实现科学上网
License
The 3-clause BSD License
- see LICENSE for more details