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 cannot start in Ubuntu: Error starting proxy server: error(98, 'Address already in use')

I am willing to use MitmProxy to intercept https traffic in my computer. I followed the installation document here in Ubuntu. After complete, I try to run "mitmproxy" in Terminal and got this error. Error starting proxy server: error(98, 'Address…
Andiana
  • 1,912
  • 5
  • 37
  • 73
0
votes
1 answer

Issue installing mitmproxy using pip on Amazon EC2 instance (CentOS)

I am trying to install mitproxy on my EC2 linux instance using pip: sudo pip install mitmproxy I have python2.7 installed, and now 2 instances of libffi $ rpm -qa | grep libff libffi-3.0.13-11.4.amzn1.x86_64 libffi-devel-3.0.13-11.4.amzn1.x86_64 but…
nick_j_white
  • 534
  • 6
  • 27
0
votes
1 answer

Python - proxy that listens for only one URL

I am trying to make a proxy in Python that listens to a specific port and is set up on my computer ip (basically like burp suite, or Charles) I need this proxy to 'watch' for one specific URL which I know and I need it to automatically change the…
niro
  • 19
  • 2
0
votes
2 answers

mitmproxy installed with pip, get error

I installed the mitmproxy on Mac OS 10.11 with pip. But I am getting the error: Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 7, in from mitmproxy.main import mitmproxy File…
tim
  • 105
  • 9
0
votes
1 answer

mitmproxy - How to Get FULL Output File in Windows?

Just installed mitmproxy in Windows and it works great. The only problem is that there is no interactive user interface per the documentation. If I copy the console text I do not see the full data in the requests like JSON/XML. How can I get an…
reddish
  • 29
  • 7
0
votes
2 answers

Can I capture HTTP traffic even if the host if offline?

I too feel that this is a stupid question but I'm unsure if capturing traffic will work if the host is offline? I was actually discussing about Man-in-The-Middle attacks and just thought lets suppose https://example.com is offline (down or blocked…
GeekyNoob
  • 1
  • 1
0
votes
0 answers

Trying to monitor HTTPs traffic from an Android App using HoneyProxy, figure out the certificates.

I am on a Windows PC and would like to monitor HTTPs traffic from my Android phone from a particular app. I installed Honeyproxy and set a proxy address on my android device using Proxy Settings app. I am able to see the GET traffic of my phone.…
Samarth Bharadwaj
  • 559
  • 2
  • 5
  • 15
0
votes
0 answers

HTTPS inspection on my server

I have been trying to inspect all the traffic going through my machine. I have a server directly connected to Internet. And I would like to log all the youtube request made on internet with the URL. As youtube is based on SSL, so I must need to…
Wasif Kirmani
  • 1,277
  • 3
  • 22
  • 43
0
votes
2 answers

UnicodeDecodeError when editing HTML code with Python

I'm using mitmproxy to manipulate the returning HTML code of webpages. When I'm using commands on that HTML code I got UnicodeDecodeError. I tried to do anything, and read any post here and still nothing worked for me. Two examples of many things I…
Dan
  • 829
  • 2
  • 12
  • 23
0
votes
1 answer

libmproxy - how to load requests asynchronously?

I'm wondering how can I load requests asynchronously with libmproxy or mitmproxy. My code looks like this: class StickyMaster(controller.Master): def __init__(self): ...... def handle_request(self): .... def…
Dan
  • 829
  • 2
  • 12
  • 23
0
votes
1 answer

Modifying request.url without changing request.host

I'm using mitmproxy with python as a http proxy I run the proxy with following command: mitmdump -s proxy.py -U http://upstreamproxy The proxy.py is like following: #!/usr/bin/mitmdump from __future__ import print_function import pprint import…
Boying
  • 1,404
  • 13
  • 20
0
votes
1 answer

RaspberryPi as AccessPoint with 2 Wifi usb running MITMProxy and ParosProxy

I was trying to study the HTTP(s) requests/response that the apps from my phone are sending so this is what I went ahead and created. I turned my Raspberry Pi as an access point with 2 wifi usb dongles. One for my phone to connect to the "TEST"…
0
votes
1 answer

Mitmproxy: Tampering with get request: Replace all instances of string "data: 123" in request with script

I am working with mitmproxy, and I am still fairly new to it (been using it for a couple of days). Right now I am attempting to intercept get requests, and replace all instances of a string, for example "data: 123" with "data: 456", and then resume…
user1576752
  • 29
  • 1
  • 3
  • 10
0
votes
1 answer

Making MITM proxy run on Mac

I need to make use of python's mitmproxy. I have installed it successfully. However when I run mitmproxy command on my terminal it gives me a stack trace like the below : File "/usr/local/bin/mitmproxy", line 9, in…
qre0ct
  • 5,680
  • 10
  • 50
  • 86
0
votes
1 answer

A replacement for HoneyProxy (dumping requests into a directory like structure)?

I'm looking for a HTTP/HTTPS proxy with the capability of dumping the requests into a directory like structure. For example if I request example.com/path/example.html, example.html will be stored in a somedir/example.com/path/example.html in my…
Alex
  • 1,914
  • 6
  • 26
  • 47