# mitm proxy

Instal mitmproxy

```
$ sudo apt install mitmproxy
```

Run mitmproxy. By default it listens on all interfaces (\*) on port 8080

```
$ sudo mitmproxy
```

Run mitmproxy (web version)

```
$ sudo mitmweb
```

Browse to <http://mitm.it> on your client device

Install proxy root certificate

For iOS devices, you must visit <http://mitm.it> using Safari. Install the profile. Settings > General > mitmproxy > Install (and enter PIN).

iOS: Settings > General > About > Certificate Trust Cettings - Enable mitmproxy for full trust

Configure network settings

iOS: Settings > Wi-Fi > Select your network (select (i)) > Configure HTTP proxy > Manual;&#x20;

Server = IP address of the host running mitmproxy (must be contactable)\
Port = 8080 (by default)\
Authentication = blank<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.iblue.team/general-notes-1/mitm-proxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
