[WEB DATA: <span>Mitmproxy is a powerful tool for intercepting and modifying HTTP and HTTPS traffic. It can be used as a proxy server, allowing you to inspect and manipulate network requests in real-time. Here’s a brief overview of its features and capabilities:</span>
<h2 class="">Overview of Mitmproxy</h2>
<ul class="">
<li index="0"><span>
</span><span><span><strong>Modes of Operation</strong></span><span>:</span></span><span>
</span><span><ul class="">
<li index="0"><span><strong>mitmproxy</strong></span><span>: Interactive console interface.</span></li>
<li index="1"><span><strong>mitmdump</strong></span><span>: Command-line version for non-interactive use.</span></li>
<li index="2"><span><strong>mitmweb</strong></span><span>: Web-based GUI for easier flow inspection.</span></li>
</ul></span><span>
</span></li>
<li index="1"><span>
</span><span><span><strong>Getting Started</strong></span><span>:</span></span><span>
</span><span><ul class="">
<li index="0"><span>By default, mitmproxy listens on </span><span><code>http://localhost:8080</code></span><span>. You need to configure your browser or device to route traffic through this proxy.</span></li>
<li index="1"><span>To verify that traffic is flowing through mitmproxy, visit </span><span><code>http://mitm.it</code></span><span> to install the necessary Certificate Authority (CA) certificate for HTTPS interception</span><span><span class=""><a target="_blank" rel="nofollow noopener" class="" data-state="closed" aria-label="Getting Started - mitmproxy docs" href="https://docs.mitmproxy.org/stable/overview-getting-started/"><span class=""><span class="" data-number="5"></span></span></a>.</span></span><span></span></li>
</ul></span><span>
</span></li>
<li index="2"><span>
</span><span><span><strong>Common Use Cases</strong></span><span>:</span></span><span>
</span><span><ul class="">
<li index="0"><span>Debugging web applications by viewing request/response flows.</span></li>
<li index="1"><span>Modifying requests and responses on the fly using scripts.</span></li>
<li index="2"><span>Performing security testing by manipulating traffic to identify vulnerabilities.</span></li>
</ul></span><span>
</span></li>
</ul>
<h2 class="">Installation</h2>
<span>You can install mitmproxy via pip:</span>
<div class=""><pre class=""><div class=""><div><div class="">bash</div></div><div class=""><span style="font-size: inherit; font-family: inherit; background: transparent; color: rgb(197, 200, 198); border-radius: 3px; display: flex; line-height: 1.42857; overflow-x: auto; white-space: pre;"><code style="font-size: inherit; font-family: inherit; line-height: 1.66667; padding: 8px; white-space: pre-wrap;"><span style="opacity: 1; font-size: inherit; line-height: 1.42857; color: rgb(197, 200, 198); background-color: transparent; flex-shrink: 0; padding: 8px; text-align: right; user-select: none;"><span>pip </span><span class="" style="color: rgb(197, 200, 198);">install</span><span> mitmproxy
</span></span><span style="opacity: 1; font-size: inherit; line-height: 1.42857; color: rgb(197, 200, 198); background-color: transparent; flex-shrink: 0; padding: 8px; text-align: right; user-select: none;"></span></code></span><button aria-label="Copy Code" type="button" class=""><svg class="" viewBox="0 0 384 512" width="16pt" height="16pt" fill="#c5c8c6"><path d="M280 240H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm0 96H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM112 232c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 48c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm144 408c0 4.4-3.6 8-8 8H56c-4.4 0-8-3.6-8-8V120c0-4.4 3.6-8 8-8h40v32c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-32h40c4.4 0 8 3.6 8 8v336z"></path></svg></button></div></div></pre></div>
<span>Alternatively, you can download pre-built binaries from the </span><span><a target="_blank" rel="nofollow noopener" class="" href="https://github.com/mitmproxy/mitmproxy/releases">GitHub releases page</a></span><span>.</span>
<h2 class="">Basic Commands</h2>
<span>Here are some basic commands to get started:</span>
<ul class="">
<li index="0"><span>
</span><span><span>Start the interactive proxy:</span></span><span>
</span><span><div class=""><pre class=""><div class=""><div><div class="">bash</div></div><div class=""><span style="font-size: inherit; font-family: inherit; background: transparent; color: rgb(197, 200, 198); border-radius: 3px; display: flex; line-height: 1.42857; overflow-x: auto; white-space: pre;"><code style="font-size: inherit; font-family: inherit; line-height: 1.66667; padding: 8px; white-space: pre-wrap;"><span style="opacity: 1; font-size: inherit; line-height: 1.42857; color: rgb(197, 200, 198); background-color: transparent; flex-shrink: 0; padding: 8px; text-align: right; user-select: none;"><span>mitmproxy
</span></span><span style="opacity: 1; font-size: inherit; line-height: 1.42857; color: rgb(197, 200, 198); background-color: transparent; flex-shrink: 0; padding: 8px; text-align: right; user-select: none;"></span></code></span><button aria-label="Copy Code" type="button" class=""><svg class="" viewBox="0 0 384 512" width="16pt" height="16pt" fill="#c5c8c6"><path d="M280 240H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm0 96H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM112 232c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 48c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm144 408c0 4.4-3.6 8-8 8H56c-4.4 0-8-3.6-8-8V120c0-4.4 3.6-8 8-8h40v32c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-32h40c4.4 0 8 3.6 8 8v336z"></path></svg></button></div></div></pre></div></span><span>
</span></li>
<li index="1"><span>
</span><span><span>Start mitmdump for logging:</span></span><span>
</span><span><div class=""><pre class=""><div class=""><div><div class="">bash</div></div><div class=""><span style="font-size: inherit; font-family: inherit; background: transparent; color: rgb(197, 200, 198); border-radius: 3px; display: flex; line-height: 1.42857; overflow-x: auto; white-space: pre;"><code style="font-size: inherit; font-family: inherit; line-height: 1.66667; padding: 8px; white-space: pre-wrap;"><span style="opacity: 1; font-size: inherit; line-height: 1.42857; color: rgb(197, 200, 198); background-color: transparent; flex-shrink: 0; padding: 8px; text-align: right; user-select: none;"><span>mitmdump -w outputfile
</span></span><span style="opacity: 1; font-size: inherit; line-height: 1.42857; color: rgb(197, 200, 198); background-color: transparent; flex-shrink: 0; padding: 8px; text-align: right; user-select: none;"></span></code></span><button aria-label="Copy Code" type="button" class=""><svg class="" viewBox="0 0 384 512" width="16pt" height="16pt" fill="#c5c8c6"><path d="M280 240H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm0 96H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM112 232c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 48c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm144 408c0 4.4-3.6 8-8 8H56c-4.4 0-8-3.6-8-8V120c0-4.4 3.6-8 8-8h40v32c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-32h40c4.4 0 8 3.6 8 8v336z"></path></svg></button></div></div></pre></div></span><span>
</span></li>
<li index="2"><span>
</span><span><span>Start mitmweb for a web interface:</span></span><span>
</span><span><div class=""><pre class=""><div class=""><div><div class="">bash</div></div><div class=""><span style="font-size: inherit; font-family: inherit; background: transparent; color: rgb(197, 200, 198); border-radius: 3px; display: flex; line-height: 1.42857; overflow-x: auto; white-space: pre;"><code style="font-size: inherit; font-family: inherit; line-height: 1.66667; padding: 8px; white-space: pre-wrap;"><span style="opacity: 1; font-size: inherit; line-height: 1.42857; color: rgb(197, 200, 198); background-color: transparent; flex-shrink: 0; padding: 8px; text-align: right; user-select: none;"><span>mitmweb
</span></span><span style="opacity: 1; font-size: inherit; line-height: 1.42857; color: rgb(197, 200, 198); background-color: transparent; flex-shrink: 0; padding: 8px; text-align: right; user-select: none;"></span></code></span><button aria-label="Copy Code" type="button" class=""><svg class="" viewBox="0 0 384 512" width="16pt" height="16pt" fill="#c5c8c6"><path d="M280 240H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm0 96H168c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM112 232c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 48c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm144 408c0 4.4-3.6 8-8 8H56c-4.4 0-8-3.6-8-8V120c0-4.4 3.6-8 8-8h40v32c0 8.8 7.2 16 16 16h160c8.8 0 16-7.2 16-16v-32h40c4.4 0 8 3.6 8 8v336z"></path></svg></button></div></div></pre></div></span><span>
</span></li>
</ul>
<h2 class="">Useful Resources</h2>
<span>For more detailed information, including advanced usage, scripting, and troubleshooting, refer to the official documentation at </span><span><a target="_blank" rel="nofollow noopener" class="" href="https://docs.mitmproxy.org/stable/overview-getting-started/">docs.mitmproxy.org</a></span><span> and explore community discussions on platforms like </span><span><a target="_blank" rel="nofollow noopener" class="" href="https://discourse.mitmproxy.org/">Discourse</a></span><span> and </span><span><a target="_blank" rel="nofollow noopener" class="" href="https://github.com/mitmproxy/mitmproxy">GitHub</a></span><span> for additional support and examples.</span>]

user: give mitmproxy site thx bbg Please look at the WEB DATA, and answer the prompt please do not say anything about the web data like saying "According to the web data" or anything like that. With the web data, you have data about the year 2024, so if the data is about the past or future, please consider that.