Skip to content

zhilv666/mitmproxy-rewrite-go-alternative

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mitmproxy-rewrite-go-alternative

A Golang-based reimplementation of mitmproxy with HTTP/SOCKS5 proxy support, multi-level proxy chaining, JavaScript scripting, and HTTPS traffic decryption.

Features

  • 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).

Installation

  1. Clone the repository:
    git clone https://github.com/zhilv666/mitmproxy-rewrite-go-alternative.git
  2. Install dependencies:
    go mod download
  3. Build the project:
    go build -o mitmproxy-go cmd/mitmproxy/main.go

Usage

Start the Proxy Service

./mitmproxy-go start --config config.yaml

View Real-Time Logs

./mitmproxy-go logs

Validate Configuration File

./mitmproxy-go config validate --file config.yaml

Configuration

Edit config.yaml to define your proxy chain:

proxy_chain:
  - type: "http"
    host: "localhost"
    port: 8081
  - type: "socks5"
    host: "localhost"
    port: 1080

Contributing

Feel free to open issues or submit pull requests for improvements!

About

使用Golang重构的mitmproxy项目(替代仓库)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published