Questions tagged [mitmproxy]

mitmproxy is an interactive console tool that allows network traffic to be inspected and edited on the fly.

Its features include:

  • Intercept HTTP/HTTPS requests and responses and modify them on the fly.
  • Save complete HTTP/HTTPS conversations for later replay and analysis.
  • Replay the client-side of an HTTP/HTTPS conversations.
  • Replay HTTP/HTTPS responses of a previously recorded server.
  • Reverse proxy mode to forward traffic to a specified server.
  • Transparent proxy mode on OSX and Linux.
  • Make scripted changes to HTTP/HTTPS traffic using Python.
  • SSL certificates for interception are generated on the fly.

Project Homepage

441 questions
23
votes
5 answers

ImportError: No module named 'thread'

when I run mitmproxy command in command line, I get the following error. % mitmproxy Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 7, in from libmproxy.main import mitmproxy File…
user5809117
16
votes
1 answer

Mitmproxy Client connection killed by block_global

Installed the latest version of mitmproxy, added cert, all like in instructions. Proxy not working, can't reach any site...what I'm doing wrong? Thanks for your time.
KaronatoR
  • 2,579
  • 4
  • 21
  • 31
15
votes
2 answers

Display Mitmproxy's Events Log on Linux

Mimtproxy docs only talks about how to increase events log verbosity, and on Linux I can't seem to find the mentioned log file either in ~/.mitmproxy nor in the standard /var/log folders. Is there a way to access the mitmproxy's event log file ?
programmersn
  • 582
  • 1
  • 3
  • 17
13
votes
1 answer

Clear screen in Mitmproxy Linux

I'm using Mitmproxy over multiple platforms (linux and os x), and while on os x the combination shift+c clears the console log, on linux it opens the "Export to clipboard" option, as follows: Is there a way to clear the mitmproxy logs in…
Nadav96
  • 1,274
  • 1
  • 17
  • 30
13
votes
1 answer

Running docker container through mitmproxy

I'm trying to route all traffic of a docker container through mitmproxy running in another docker container. In order for mitmproxy to work, I have to change the gateway IP of the original docker container. Here is an example of what I want to do,…
user2419509
  • 303
  • 1
  • 3
  • 9
12
votes
1 answer

Mitmproxy url filter

I am using mitmproxy on Mac. I want to filter traffic by specifyc URL. The "intercept" function allows me to pause communication whenever filtered url is noticed. My question is - how can I filter traffic without pausing communication? I want it to…
EdgarY
  • 164
  • 1
  • 1
  • 7
9
votes
3 answers

Using mitmproxy inside python script

I new in mitmproxy. But I can't figure out how to used that in python script. I want to put mitmproxy into my python script just like a library and also specific everything like port or host and do some modify with Request or Response in my python…
j3ssie
  • 91
  • 1
  • 2
  • 3
9
votes
2 answers

MITMPROXY make output human readable to file

My system: Ubuntu 16.04 Mitmproxy version 3.0.4 Python version 3.5.2 I've successfully installed mitmproxy from: docs.mitmproxy.org on my server. But now I got confused how to save log mitmproxy to file? I try use mitmdump --mode transparent…
semangatTA
  • 91
  • 1
  • 5
9
votes
3 answers

How to capture HTTP request / response headers with mitmproxy?

I have been able to capture the HTTP(s) traffic from a smartphone and also stored this traffic using mitmdump using the command mitmdump -w outfile This seems to dump the HTTP body along with the headers as well. I am interested in capturing only…
sfactor
  • 12,592
  • 32
  • 102
  • 152
9
votes
3 answers

Trouble setting up port forwarding for transparent proxy on Mac OS X

I'm trying to set up a transparent proxy on my Mac OS X Lion (10.7.5), so I can use mitmproxy (to intercept SSL traffic from android applications). I followed the steps in the mitmproxy docs for setting up port forwarding with pf on Mac OS X, and…
Ben G
  • 26,091
  • 34
  • 103
  • 170
8
votes
1 answer

Running mitmproxy on macOS Sierra: traffic not passing through

I have installed mitmproxy with homebrew. mitmproxy --version Mitmproxy version: 2.0.0 (release version) Python version: 3.6.0 Platform: Darwin-16.3.0-x86_64-i386-64bit SSL version: OpenSSL 1.1.0e 16 Feb 2017 Mac version: 10.12.2 ('', '', '')…
tonyofthewoods
  • 120
  • 1
  • 6
8
votes
2 answers

Reverse engineering the Xbox One Smartglass app's API authorization header

Since Microsoft decided to put the profile pages for Xbox Live users behind a login wall for some stupid reason I have been forced to find other means to determine if a Xbox Live user is online or not. To do this I have used mitmproxy to figure out…
Reid Main
  • 3,394
  • 3
  • 25
  • 42
7
votes
1 answer

How to redirect HTTPS traffic to local HTTP server using mitmproxy?

I am trying to setup mitmproxy so that I can make a request from my browser to https://{my-domain} and have it return a response from my local server running at http://localhost:3000 instead, but I cannot get the https request to reach my local…
J W
  • 1,170
  • 7
  • 15
7
votes
3 answers

Change URL to another URL using mitmproxy

I am trying to redirect one page to another by using mitmproxy and Python. I can run my inline script together with mitmproxy without issues, but I am stuck when it comes to changing the URL to another URL. Like if I went to google.com it would…
MortenMoulder
  • 6,138
  • 11
  • 60
  • 116
7
votes
1 answer

Converting a SOAP UI SOAP request to curl - curl via mitmproxy works

Well, basically that's my question. I honestly don't know what using mitmproxy results in a successful request. Here's what I did: Created a request from WSDL and was able to query the server successfully Recreated that request using curl. I tried…
Francis Zabala
  • 1,037
  • 2
  • 11
  • 30
1
2 3
29 30