Emanuele Micheletti
Enhancing Network Interception with Mitmproxy: An Open Source Solution for Transparent Proxy Mode on macOS and Linux.
Rel. Marco Torchiano, Maximilian Hils. Politecnico di Torino, Corso di laurea magistrale in Ingegneria Gestionale, 2024
|
Preview |
PDF (Tesi_di_laurea)
- Tesi
Licenza: Creative Commons Attribution Share Alike. Download (1MB) | Preview |
Abstract
Mitmproxy is an open-source tool designed for intercepting and manipulating HTTPS traffic. It allows users to intercept traffic from an entire machine or a single, specific process, offering flexibility in a range of operational modes: regular, reverse, upstream, SOCKS, DNS and transparent. In transparent mode, the tool operates at the operating system (OS) layer, making it OS-specific and increasing the complexity of implementation. On macOS, two possible approaches were examined: the first was to redirect any packet on the User Tunnel (UTUN) interface: from UTUN packets could be managed and sent to Mitmproxy. The code was written exclusively in Rust, leveraging its capabilities to operate at a low level; having only one language to maintain might be an advantage but on macOS, conditionally redirections of packets are complex, this forced the redirection of all traffic to Mitmproxy only filtering requests later.
This behavior is suboptimal because Mitmproxy bears the burden of processing the entire traffic even when it is only concerned with a specific process
Relatori
Anno Accademico
Tipo di pubblicazione
Numero di pagine
Corso di laurea
Classe di laurea
URI
![]() |
Modifica (riservato agli operatori) |
