A Golang-based reimplementation of mitmproxy with HTTP/SOCKS5 proxy support, multi-level proxy chaining, JavaScript scripting, and HTTPS traffic decryption.
- HTTP/SOCKS5 Proxy: Intercept and forward HTTP/SOCKS5 traffic.
- Multi-Level Proxy Support: Chain multiple proxies together using configuration files.
- JavaScript Scripting: Modify requests/responses using custom JavaScript scripts.
- HTTPS Traffic Decryption: Generate dynamic SSL/TLS certificates for HTTPS interception.
- CLI Tool: Manage the proxy service through a command-line interface (
mitmproxy-go
).
- Clone the repository:
git clone https://github.com/zhilv666/mitmproxy-rewrite-go-alternative.git
- Install dependencies:
go mod download
- Build the project:
go build -o mitmproxy-go cmd/mitmproxy/main.go
./mitmproxy-go start --config config.yaml
./mitmproxy-go logs
./mitmproxy-go config validate --file config.yaml
Edit config.yaml
to define your proxy chain:
proxy_chain:
- type: "http"
host: "localhost"
port: 8081
- type: "socks5"
host: "localhost"
port: 1080
Feel free to open issues or submit pull requests for improvements!