https://github.com/johnsonlee/mitmproxy
A Man-In-The-Middle proxy server in Kotlin
https://github.com/johnsonlee/mitmproxy
kotlin mitmproxy
Last synced: about 1 month ago
JSON representation
A Man-In-The-Middle proxy server in Kotlin
- Host: GitHub
- URL: https://github.com/johnsonlee/mitmproxy
- Owner: johnsonlee
- Created: 2022-11-05T11:24:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-23T08:30:54.000Z (over 3 years ago)
- Last Synced: 2025-01-27T06:15:01.573Z (over 1 year ago)
- Topics: kotlin, mitmproxy
- Language: Kotlin
- Homepage:
- Size: 226 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mitmproxy
A Man-In-The-Middle proxy server in Kotlin.
## Getting Started
1. Launch mitmproxy server
```bash
cd docker && docker-compose up -d --build
```
1. Launch emulator
```bash
./emulator.sh
```
1. Check metrics
Open [http://localhost:3000](http://localhost:3000) to check Grafana dashboard
## Features
### Traffic Recording
The recorded flows can be discovered from [/api/flow](http://localhost:8080/api/flow/).
### Map To Local
```kotlin
val service: MappingService by context
// ...
service.mapToLocal(from, to)
```
### Map To Remote
```kotlin
val service: MappingService by context
// ...
service.mapToRemote(from, to)
```
## Download CA Certificates
Open [http://localhost:8080/ssl](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/