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

mitmproxy: shortcut for undoing edit

new user of mitmproxy here. I've figured out how to edit a request and replay it, and I'm wondering how to undo my edit. More specifically, I go to a request's flow, hit 'e', then '8' to edit the request headers. Then I press 'd' to delete one of…
rampatowl
  • 1,722
  • 1
  • 17
  • 38
0
votes
0 answers

How to decrypt TLS 1.2 stream going to Cloud server?

I have IOT device running on openwrt and would like to sniff traffic between IOT device application which runs and sends traffic to Cloud. Application itself uses SSL certificates as I can see in /SSL folder there is 3 certificates like Cacert.pem,…
Vaikis2006
  • 39
  • 5
0
votes
1 answer

Some app could not data such as facebook load when uses mitmproxy

I installed a mitmproxy on MacOS and run like $ mitmweb -p 9999 Then I open an Ipad and goto Wifi -> manual setting proxy. Server: 192.168.1.202 Port: 9999 Chrome worked fine but some app can not load the content such as Facebook, App Store. In…
Binh Ho
  • 3,690
  • 1
  • 31
  • 31
0
votes
1 answer

mitmweb on windows server 2008 R2 "The procedure entry point ucrtbase.terminate could not be located" error

I have installed mitmproxy as usual on my Windows Server 2008 R2 machine. When I try to run the program, It terminates and shows the message box: "The procedure entry point ucrtbase.terminate could not be located in the dynamic link lybrary…
0
votes
1 answer

mitmdump replacement pattern construction

I'm trying to specify replacements in mitmdump but am having trouble getting the syntax right. What I want to do is replace the entire path in a request with a fixed string. I've tried -R :~bq:/*:/example.html but that results in "Invalid filter…
imac
  • 47
  • 9
0
votes
1 answer

Mitmproxy - docker - SSLKEYLOGFILE

I'm using mitmproxy docker container https://hub.docker.com/r/mitmproxy/mitmproxy/ I'm executing the container using this command: docker run --rm -it -p 8080:8080 mitmproxy/mitmproxy I'm struglying to undenstand how to execute this command from…
user3925023
  • 667
  • 6
  • 25
0
votes
1 answer

Error in setting up mitmproxy on alpine 3.9

I am using alpine 3.9, and setting up mitmproxy on it.(https://github.com/danielguerra69/alpine-mitmproxy/blob/master/Dockerfile) Dockerfile : FROM alpine:3.9 RUN apk --update --no-cache add py2-pip ca-certificates gcc libffi-dev python2-dev…
Bhagwati Malav
  • 3,349
  • 2
  • 20
  • 33
0
votes
1 answer

How to send nested query parameters using python requests

I'm struggling to do a proper POST using python requests. I'm analysing a site using mitmproxy and the params being sent are listed as _cmc.workload: { "Requests": [ { "Service": "CourseOfSalesGet1", "TId": 11, "Request": { …
West
  • 2,350
  • 5
  • 31
  • 67
0
votes
1 answer

How to start mitmproxy on Windows

I am always having trouble getting mitmproxy to work on Windows. Sometimes it just starts up and works and sometimes it doesn't. Now I haven't been able to start it for a while and I keep getting this error Error starting proxy server:…
West
  • 2,350
  • 5
  • 31
  • 67
0
votes
1 answer

How to achieve flow like this

I'd like to get flow like this one on the picture. Is there any way to intercept all HTTP request within a docker container, modify their headers and then send them? Notice that URI of first request is pointing to APP 4, not APP 2.
uiguyf ufdiutd
  • 142
  • 1
  • 10
0
votes
0 answers

Intercepting packets

In a topology like: phone --> proxy (man in the middle) --> server Where the proxy is supposed to capture the packets that are sent from my phone, which I would like to visualize on Wireshark, what are the possible reasons for the proxy to not…
yosra
  • 702
  • 1
  • 11
  • 24
0
votes
2 answers

issues with python when installing mitmproxy on Raspberry Pi

I am trying to install mitmproxy on a Raspberry Pi, but getting the below issues, which I believe are related to Python. I have tried numerous attempts and searches but no luck at all. Not sure if this is due to dependencies with libraries need by…
JoeMarshall
  • 33
  • 1
  • 4
0
votes
1 answer

python3 on Raspberry pi

I'm trying to run mitmproxy on Raspberry Pi to run some tests however although Python3 is installed and python2 is uninstalled, I keep getting an error when trying to run mitmproxy - mitmproxy requires Python 3.6 or higher. pi@raspberrypi: python3…
JoeMarshall
  • 33
  • 1
  • 4
0
votes
1 answer

How to perform Man in the Middle Attack in Android?

I am building an application in which I want to block particular hosts. We intercepted the network traffic via VPNService in Android and we get all the packets. I did DNS resolution to get the hostname from the destination address. My aim is to…
jjjohndoe
  • 35
  • 10
0
votes
1 answer

How can I use iptables to make a TCP proxy between me and a outside service?

So far I was able to redirect TCP connections with a specific destination address or port to my own program with this iptables rule: iptables -t nat -A OUTPUT -p tcp -d
--dport -j REDIRECT --to This works well until I…
janispritzkau
  • 1,877
  • 2
  • 12
  • 15