From 8e09914b78b77ceb13890d18da0ef0886ae21f35 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 12 Jan 2025 23:42:15 +0100 Subject: [PATCH] mitmproxy-linux: add build dependency section --- mitmproxy-linux/README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mitmproxy-linux/README.md b/mitmproxy-linux/README.md index 59476c91..39c583ac 100644 --- a/mitmproxy-linux/README.md +++ b/mitmproxy-linux/README.md @@ -5,9 +5,19 @@ This package contains the following precompiled binaries for Linux: - `mitmproxy-linux-redirector`: A Rust executable that redirects traffic to mitmproxy via eBPF. +## Build Dependencies + +This package requires the following software to build (via https://aya-rs.dev/book/start/development/#prerequisites): + + - Rust nightly. + - [bpf-linker]: `cargo install --locked bpf-linker` + ## Redirector Development Setup -1. Install [bpf-linker](https://github.com/aya-rs/bpf-linker): `cargo install --locked bpf-linker` -2. Run `pip install -e .` to install `mitmproxy_linux` as editable. +1. Install build dependencies (see above). +2. Install mitmproxy_linux as editable: `pip install -e .` 3. Run something along the lines of `mitmdump --mode local:curl`. You should see a `Development mode: Compiling mitmproxy-linux-redirector...` message. + + +[bpf-linker]: https://github.com/aya-rs/bpf-linker