Skip to content

johnsonlee/mitmproxy

Repository files navigation

mitmproxy

A Man-In-The-Middle proxy server in Kotlin.

Getting Started

  1. Launch mitmproxy server

    cd docker && docker-compose up -d --build
  2. Launch emulator

    ./emulator.sh
  3. Check metrics

Open http://localhost:3000 to check Grafana dashboard

Features

Traffic Recording

The recorded flows can be discovered from /api/flow.

Map To Local

val service: MappingService by context
// ...
service.mapToLocal(from, to)

Map To Remote

val service: MappingService by context
// ...
service.mapToRemote(from, to)

Download CA Certificates

Open http://localhost:8080/ssl to download the CA certificates

Install CA Certificates on Android Emulator

Please refer to https://docs.mitmproxy.org/stable/howto-install-system-trusted-ca-android/