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

Getting body content from request in node-mitm

I have the following node-mitm code. mitm = Mitm(); mitm.on("request", function(req, res) { const body = req.body; //body is null }) I feel this has to do with reading node's IncomingMessage events, but I don't know how to do it.
alayor
  • 4,537
  • 6
  • 27
  • 47
0
votes
1 answer

Fully recording HTTPS traffic on osx.

I'm trying to use wireshark to decode, view, and ultimately log my own https traffic--response bodies included. According to the wireshark docs, I need provide the file location of the private RSA key used to decode messages. My question is…
dustinevan
  • 918
  • 9
  • 21
0
votes
0 answers

Google Firestore: Custom auth mechanism

I want to create user based app with firestore, but I don't want to enforce users to login through Google or Facebook or (damn) email and password. Aim: User logging in my app by vk.com (social network) sdk I'm getting vk.com user id and that is…
0
votes
0 answers

mitmproxy show http on port 443 even though the request is https

I'm running mitmproxy with a valid certificate. The problem is when I receive a GET request with the domain for which I have the valid certificate, I see in the flow.request.scheme == "http" -> True and the flow.request.port == 443 -> True nd not…
ddor254
  • 1,570
  • 1
  • 12
  • 28
0
votes
1 answer

sabre/dav - The server specified an invalid calendar home

I'm working on including sabre/dav as base for a CalDAV-Server into an existing symfony-project. Until now I've successfully extened the auth-classes. It's possible to log in with Lightning and, using the calendars and principals backend from…
jschultze
  • 11
  • 3
0
votes
1 answer

How Can I Get Mitmproxy Docker to Work on Windows Bash?

When I try running mitmproxy Docker container on Windows bash, I get an error message that the Docker daemon isn't running. How can I get it to run? docker run --rm -it -p 8080:8080 mitmproxy/mitmproxy docker: Cannot connect to the Docker daemon.…
BSalita
  • 8,420
  • 10
  • 51
  • 68
0
votes
1 answer

Change images in HTTPResponse with mitmproxy

For a school project we setup mitmproxy on Kali Linux. Finally, we were able to install mitmproxy and we can now intercept HTTPS packages of client devices, which browse websites as WLAN clients of our Raspberry Pi. One of our goals is to change…
Paul
  • 51
  • 1
  • 7
0
votes
2 answers

Mitm proxy doesn't capture windows universal app ssl traffic

As the title says, I couldn't get mitm proxy to log ssl traffic of windows apps. I tested an app working with ssl on both Android and Windows + Windows mobile. Even in fiddler, I exempted the app but it couldn't track the requests either. as I was…
Ali Padida
  • 1,763
  • 1
  • 16
  • 34
0
votes
0 answers

How to integrate mitmproxy into python web framework such as flask

I am a newbie on python web programming, still don't know how to integrate mitmproxy with web framework such as flask. I mean is it possible to send a request to start mitmproxy service, another request to stop it, as example below: app =…
Xun Lee
  • 313
  • 1
  • 3
  • 12
0
votes
1 answer

Rewrite a domain in mitmproxy

I have an Android app, which is making request to example.com. How can I setup mitmproxy such that all requests to example.com/etc/else will go to dev.example.com/etc/else? I tried this: My script (rewrite.py): import mitmproxy from mitmproxy.models…
valk
  • 9,363
  • 12
  • 59
  • 79
0
votes
1 answer

mitmproxy with Tor Browser

I need to use mitmproxy to look at packets sent from my host to the Tor entry node using the Tor Browser. I'm using tor-browser-selenium to automate the Tor Browser, but suggestions need not be specific to this library. I just need to know how to…
Connor
  • 193
  • 1
  • 11
0
votes
1 answer

Mitmproxy in reverse proxy mode with self signed upstream cert

I have several machines which don't support TLS 1.1 & 1.2 and the server they're supposed to be connecting to is dropping support for older protocols. They're all tunneling through central server anyway. The idea is to run mitmdump as reverse proxy…
Damir
  • 345
  • 4
  • 16
0
votes
0 answers

No module named 'ASWBXML'

i try to run mitmproxy on centos 6.8. so i compiled python 3.5.1 and installed ist. when i run "mitmproxy" i always get import errors. i found a solution for: thread, cookie, cookielib... but how to solve this problem: Traceback (most recent call…
spitzbuaamy
  • 751
  • 2
  • 10
  • 25
0
votes
1 answer

Python serialize HTTPFlow object (MITM)

I am using mitmproxy, a python man-in-the-middle (MITM) proxy for HTTP, to modify on the fly the HTTP request of a certain website. Goal: For test purposes, when it receives an HTTP request, it should save it (it receives a HTTPFlow object) and the…
Mirko Conti
  • 588
  • 4
  • 17
0
votes
1 answer

How to dump only request and response JSON body with mitmdump?

Now I can dump all request and response with mitmdump. I am using the following command : mitmdump -w outfile.txt And this command dumps all requests and responses but I want to dump only response and request JSON bodies. How can I do that? Thanks…
Umidjon Urunov
  • 651
  • 1
  • 17
  • 39