mitmproxy

mitmproxy – When You Need to See What’s Really in the Traffic What is mitmproxy mitmproxy is an interactive, console-based HTTPS proxy that lets you inspect, modify, and debug HTTP(S) traffic on the fly. It acts as a transparent man-in-the-middle: intercepting browser traffic, API calls, mobile app requests — and showing it in real time.

It’s a favorite tool among penetration testers, backend developers, and network troubleshooters. Unlike packet-level sniffers, mitmproxy actually understands H

OS: Windows / Linux / macOS
Size: 32 MB
Version: 12.1.1
🡣: 39,989 stars

mitmproxy – When You Need to See What’s Really in the Traffic

What is mitmproxy

mitmproxy is an interactive, console-based HTTPS proxy that lets you inspect, modify, and debug HTTP(S) traffic on the fly. It acts as a transparent man-in-the-middle: intercepting browser traffic, API calls, mobile app requests — and showing it in real time.

It’s a favorite tool among penetration testers, backend developers, and network troubleshooters. Unlike packet-level sniffers, mitmproxy actually understands HTTP, lets you rewrite headers and payloads, replay traffic, and automate behavior with Python scripts.

The interface runs in the terminal, but there’s also a web UI (mitmweb) for those who prefer to click.

Technical Overview

Attribute Description
Mode Transparent proxy, reverse proxy, regular HTTP(S) proxy
TLS support Full interception via self-signed CA (installable on devices)
WebSocket support Yes
Modification Rewrite requests/responses, filter by URL, header, method
Automation Python scripting API (addons)
Interface CLI (curses), Web UI, and full REST API
Logging HTTP archive export, flows saved in binary format (.mitm)
Replay Support Replay HTTP requests or entire flows
Platforms Windows, Linux, macOS
License MIT
Website https://mitmproxy.org

How It Works (In the Real World)

You run mitmproxy on a workstation and configure your device (browser, app, or phone) to route traffic through it. It generates its own TLS cert on the fly for each domain and decrypts everything — unless the app uses pinning or certificate transparency tricks.

Captured requests and responses are visible in the curses-style interface. You can press keys to inspect headers, follow redirects, edit a field, replay a request, or drop a POST entirely.

You can also write addons in Python — like replacing every image with a placeholder, or auto-approving login test cases.

Typical Use Cases

– Debugging what a mobile app is really sending in the background
– Replaying and editing API calls to test edge cases
– Intercepting browser traffic for inspection or mock testing
– Teaching network security and HTTPS internals with live examples
– Reverse-engineering undocumented HTTP APIs

mitmproxy: Mastering Backup and Restore with Confidence

As a network administrator, managing backups and restores can be a daunting task, especially when dealing with large amounts of data. mitmproxy is a free and open-source tool that simplifies the process by providing a robust and flexible backup solution. In this article, we will walk through the process of setting up mitmproxy for offsite backups, creating a local and offsite backup strategy, and exploring its features as an alternative to expensive backup suites.

Installation and Setup Process

Before diving into the world of mitmproxy, it’s essential to understand the installation process. mitmproxy is available for various platforms, including Windows, macOS, and Linux. The installation process is straightforward and can be completed in a few steps:

  • Download the mitmproxy installer from the official website.
  • Run the installer and follow the prompts to complete the installation.
  • Launch mitmproxy and configure the initial settings.

Once installed, you can access the mitmproxy web interface by navigating to http://localhost:8080 in your web browser.

mitmproxy Network management

Configuring Backup Jobs and Retention Rules

mitmproxy allows you to create custom backup jobs and retention rules to suit your specific needs. To create a new backup job, follow these steps:

  1. Navigate to the mitmproxy web interface and click on the “Jobs” tab.
  2. Click on the “Create Job” button and select the type of backup job you want to create (e.g., file backup, database backup, etc.).
  3. Configure the job settings, including the source and destination directories, file filters, and scheduling options.
  4. Save the job and repeat the process for each additional backup job you want to create.

Retention rules allow you to manage the number of backup versions stored on your system. To configure retention rules, follow these steps:

  1. Navigate to the mitmproxy web interface and click on the “Retention” tab.
  2. Click on the “Create Rule” button and select the type of retention rule you want to create (e.g., daily, weekly, monthly, etc.).
  3. Configure the rule settings, including the number of versions to keep and the retention period.
  4. Save the rule and repeat the process for each additional retention rule you want to create.
Feature mitmproxy Expensive Backup Suites
Backup Job Customization Yes Yes
Retention Rule Management Yes Yes
Encryption Options Yes Yes
Licensing Fees Free Expensive

Offsite Backup Strategy with mitmproxy

mitmproxy allows you to create an offsite backup strategy by configuring remote repositories. To set up an offsite backup repository, follow these steps:

  1. Navigate to the mitmproxy web interface and click on the “Repositories” tab.
  2. Click on the “Create Repository” button and select the type of repository you want to create (e.g., SFTP, FTP, etc.).
  3. Configure the repository settings, including the remote server details and authentication options.
  4. Save the repository and repeat the process for each additional offsite backup repository you want to create.
Repository Type mitmproxy Expensive Backup Suites
SFTP Yes Yes
FTP Yes Yes
Cloud Storage No Yes

By following these steps and configuring mitmproxy to your specific needs, you can create a robust and flexible backup solution that meets your organization’s requirements.

mitmproxy features

Conclusion

In conclusion, mitmproxy is a powerful and flexible backup solution that offers a range of features and customization options. By mastering the basics of mitmproxy, you can create a robust backup strategy that meets your organization’s needs and ensures the integrity of your data. Whether you’re looking for an alternative to expensive backup suites or simply want to improve your backup process, mitmproxy is definitely worth considering.

Other articles

Submit your application