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
0
votes
1 answer

MemoryError: mitmproxy has crashed

MemoryError: mitmproxy has crashed Jul 16 13:02:40 cubedev-PowerEdge-R330 bash[21256]: MemoryError Jul 16 13:02:40 cubedev-PowerEdge-R330 bash[21256]: mitmproxy has crashed! Jul 16 13:02:40 cubedev-PowerEdge-R330 bash[21256]: Please lodge a bug…
Nikhil Dinesh
  • 3,359
  • 2
  • 38
  • 41
0
votes
1 answer

mitmproxy script seems not running?

I am trying to run a simple mitmscript script by issuing ./mitmproxy --mode transparent -s pyscript.py.The proxy works fine and there's no error info in mitmproxy console,but it seems the script didn't even run,log.txt file is empty even though…
abracadabra
  • 371
  • 2
  • 16
0
votes
1 answer

How to parse a mitmdump file?

I used this Tony Hirst blog to capture the required data to scrape a website. But I am only able to extract response for the last one of the flow but there are actually multiple response bodies in the log file. How to tweak the code to write all the…
alias micheal
  • 121
  • 1
  • 1
  • 5
0
votes
0 answers

How capture Web Push Notifications using mitmproxy?

I want to capture Web Push Notifications using mitmproxy. I tried with several configurations but every time I activate the mitmproxy in my OS the Web Push Notifications stop showing in the OS. The rest of the navigation is good, it is just that Wen…
Frank
  • 1
0
votes
1 answer

Ignoring 301/2 in Server Replay

I'm recording a flow that triggers a SSO (SAML) on initial page load When I do the server playback I don't want this part ignored so that all I see is the status of the ui in the browser after the SSO callback has redirected to the UI It doesn't…
Sam
  • 97
  • 7
0
votes
1 answer

How come that all mitmproxy-CA-certs have the same hash value of 8bbe0e8d?

I am using mitmproxy on two different machines. The versions are Mitmproxy: 4.0.4 Python: 3.8.2 OpenSSL: OpenSSL 1.1.1f 31 Mar 2020 Platform: Linux-5.4.0-33-generic-x86_64-with-glibc2.29 and Mitmproxy: 5.1.1 Python: 3.8.2 OpenSSL: …
shredda
  • 3
  • 2
0
votes
0 answers

is mitmproxy a real proxy/reverse proxy?

I used mitmproxy's reverse proxy plugin with some extra logic which would be hard to implement in nginx for example (not just some request/response modification). And I love it for it's simplicity. However, I lack the deeper knowledge of inner…
Martin
  • 3,333
  • 2
  • 18
  • 39
0
votes
1 answer

mitmproxy not showing traffic for android app

I want to sniff an app traffic to discover the end points of its api. So I'm using mitmproxy. In the beggining the app didn't work (it wasn't able to connect to server) when I was sniffing. After rearching I was able to solve it (I think it was due…
JohnSpa
  • 97
  • 1
  • 7
0
votes
1 answer

Mitmproxy doesn't capture http request even after installing ssl certificates and setting up systemwide proxy

I'm using ubuntu 18.04 and I'm trying to cature http/https requests using mitmproxy I was able to capture http/https requests sent by firefox browser by installing certificates on the browser and setting up browser proxy settings But I want to…
0
votes
0 answers

What is the difference between Recieve and BeginRecieve in the UDPClient Class in C#?

I have currently been trying to go over some code on GitHub for a UDP DNS Server. The DNS Server is meant to allow for proxy-like MITM behaviour so I can look at the, redirect or block the DNS packets. Reading through the code I saw two functions…
Zik
  • 101
  • 3
0
votes
1 answer

mitmproxy 5.1.1 always crashed

I encountered mitmproxy crash issue with Windows 10 64-bit build 19041.207 Following are my crash logs Mitmproxy: 5.1.1 build pypi_0 from pypi Python: 3.7.6 from conda-forge OpenSSL: 1.1.1g build he774522_0 from conda-forge pyopenssl: 19.1.0 build…
0
votes
1 answer

How to make mitmproxy listen on multiple NICs?

I have mitmproxy running in reverse mode; I don't specify a listening port: sudo mitmpdump -vv --mode reverse:http://target.server.example.com:80/ --set block_global=false -R ":~q ~m GET:^.*$:/test.html" I get "Proxy server listening at…
imac
  • 47
  • 9
0
votes
1 answer

DLL load failed error when running mitmweb.exe

I have ImportError: DLL load failed: The specified module could not be found. error when running mitmweb.exe. My steps: downloaded Windows installer from https://mitmproxy.org/ (v 5.0.1) installed (with defualt settings) on Windows Server 2019…
user1713059
  • 1,425
  • 2
  • 17
  • 34
0
votes
1 answer

installation 5.0.1 keys.yaml and config.yaml missing

After installating 5.0.1, I tried to configure mitmproxy.However, i could not find keys.yaml and config.yaml in the users directory (installer on Windows 10) or anywhere on the disk. Also i was not able to enter any command in the mitmproxy…
Arno
  • 53
  • 5
0
votes
1 answer

Generating a certificate for multiple upstream ips

I'm trying to proxy a service that has multiple upstream ips used in a round robin fashion. On first connection mitmproxy will generate a certificate for the first IP but the client rejects subsequent requests as another ip is returned that is not…
sgargan
  • 12,208
  • 9
  • 32
  • 38