# Uncategorized

**URL:** https://discourse.mitmproxy.org/c/uncategorized/1.md

[Latest](https://discourse.mitmproxy.org/latest.md) · [Categories](https://discourse.mitmproxy.org/categories.md)

---

## [Getting requests from a mobile app that only works via VPN?](https://discourse.mitmproxy.org/t/getting-requests-from-a-mobile-app-that-only-works-via-vpn/1711)

<div class="topic-metadata">

**Author:** [@vonpupp](https://discourse.mitmproxy.org/u/vonpupp)\
**Replies:** 1\
**Last updated:** [November 1, 2019, 5:03am UTC](https://discourse.mitmproxy.org/t/getting-requests-from-a-mobile-app-that-only-works-via-vpn/1711 "2019-11-01T05:03:10Z")

</div>

Hello, I want to check the requests of an app of video streaming that only works on mobiles phones within the US. I am not in the US, so I am having a hard time to achieve what I want. What I have done so far is the fo…

---

## [MajorSignalSearch: malware using mitmproxy](https://discourse.mitmproxy.org/t/majorsignalsearch-malware-using-mitmproxy/1690)

<div class="topic-metadata">

**Author:** [@tschoonj](https://discourse.mitmproxy.org/u/tschoonj)\
**Replies:** 2\
**Last updated:** [October 23, 2019, 3:58pm UTC](https://discourse.mitmproxy.org/t/majorsignalsearch-malware-using-mitmproxy/1690 "2019-10-23T15:58:40Z")

</div>

Hi, This morning I discovered some malware on my wife’s MacBook Pro which had the unpleasant effect of redirecting Google search requests in Safari to Yahoo. A bit of investigation yielded a process called MajorSignalSe…

---

## [Reverse Mode: change request host, according to the SNI (HTTPS)](https://discourse.mitmproxy.org/t/reverse-mode-change-request-host-according-to-the-sni-https/466)

<div class="topic-metadata">

**Author:** [@fakey](https://discourse.mitmproxy.org/u/fakey)\
**Replies:** 3\
**Last updated:** [October 17, 2019, 2:32am UTC](https://discourse.mitmproxy.org/t/reverse-mode-change-request-host-according-to-the-sni-https/466 "2019-10-17T02:32:00Z")

</div>

Hi All, I am trying to accept connections in Reverse mode, and set dynamic destination, according to the reverse URL being used. The error message i am getting back from the proxy is: "Changing the Host server for H…

---

## [Secure 2 way SSL](https://discourse.mitmproxy.org/t/secure-2-way-ssl/1665)

<div class="topic-metadata">

**Author:** [@mproxy](https://discourse.mitmproxy.org/u/mproxy)\
**Replies:** 0\
**Last updated:** [September 5, 2019, 10:36pm UTC](https://discourse.mitmproxy.org/t/secure-2-way-ssl/1665 "2019-09-05T22:36:18Z")

</div>

How to implement secure 2-way SSL?

---

## [One way ssl and mitm](https://discourse.mitmproxy.org/t/one-way-ssl-and-mitm/1650)

<div class="topic-metadata">

**Author:** [@mproxy](https://discourse.mitmproxy.org/u/mproxy)\
**Replies:** 1\
**Last updated:** [August 30, 2019, 1:52pm UTC](https://discourse.mitmproxy.org/t/one-way-ssl-and-mitm/1650 "2019-08-30T13:52:28Z")

</div>

There are thousands of devices connecting to a server in the cloud with one way SSL where cloud has CA signed cert installed. Assuming device does proper SSL cert validation when connecting to the server and fails the c…

---

## [How to generate har file by using mitmproxy docker?](https://discourse.mitmproxy.org/t/how-to-generate-har-file-by-using-mitmproxy-docker/1644)

<div class="topic-metadata">

**Author:** [@fasty23](https://discourse.mitmproxy.org/u/fasty23)\
**Replies:** 0\
**Last updated:** [August 23, 2019, 5:00pm UTC](https://discourse.mitmproxy.org/t/how-to-generate-har-file-by-using-mitmproxy-docker/1644 "2019-08-23T17:00:54Z")

</div>

I’m using this command but I got error: docker run --rm -it -p 8080:8080 -v $PWD:/tmp mitmproxy/mitmproxy mitmdump -s ./har\_dump.py --set hardump=/dump.har Error: /usr/bin/mitmdump: No such script The question is how…

---

## [HTTP /S Traffic monitoring on linux](https://discourse.mitmproxy.org/t/http-s-traffic-monitoring-on-linux/1618)

<div class="topic-metadata">

**Author:** [@shyamsandeep](https://discourse.mitmproxy.org/u/shyamsandeep)\
**Replies:** 0\
**Last updated:** [July 19, 2019, 2:39pm UTC](https://discourse.mitmproxy.org/t/http-s-traffic-monitoring-on-linux/1618 "2019-07-19T14:39:11Z")

</div>

Hi All i have been trying from past few days to install mitmproxy on my linux machine (ubuntu 14.04) but i couldn’t get it working, did anyone got it working with detailed steps on how to install and see it working our…

---

## [Intercept ack via MITMWeb and modify and send manually](https://discourse.mitmproxy.org/t/intercept-ack-via-mitmweb-and-modify-and-send-manually/1616)

<div class="topic-metadata">

**Author:** [@jkepps](https://discourse.mitmproxy.org/u/jkepps)\
**Replies:** 0\
**Last updated:** [July 18, 2019, 1:42am UTC](https://discourse.mitmproxy.org/t/intercept-ack-via-mitmweb-and-modify-and-send-manually/1616 "2019-07-18T01:42:27Z")

</div>

Hello all, I did a search and didn’t find what i was looking for. I am using MITMWeb to view messages, edit, and resend them. This is working well. However, I need to intercept the ack response from a request, edit it …

---

## [ImportError: No module named enum when executing an inline script](https://discourse.mitmproxy.org/t/importerror-no-module-named-enum-when-executing-an-inline-script/1580)

<div class="topic-metadata">

**Author:** [@deadstar1](https://discourse.mitmproxy.org/u/deadstar1)\
**Replies:** 3\
**Last updated:** [June 25, 2019, 7:50am UTC](https://discourse.mitmproxy.org/t/importerror-no-module-named-enum-when-executing-an-inline-script/1580 "2019-06-25T07:50:34Z")

</div>

Hi, I have following this documentation to create my own inline script. Suddenly I got an error which says ImportError: No module named enum. I run this inline script in windows 10 and python 3 def response(context, f…

---

## [How to modify window.document with mitmproxy?](https://discourse.mitmproxy.org/t/how-to-modify-window-document-with-mitmproxy/1561)

<div class="topic-metadata">

**Author:** [@mefiu](https://discourse.mitmproxy.org/u/mefiu)\
**Replies:** 0\
**Last updated:** [June 3, 2019, 8:42pm UTC](https://discourse.mitmproxy.org/t/how-to-modify-window-document-with-mitmproxy/1561 "2019-06-03T20:42:28Z")

</div>

Hi All, I’m trying to use mitmproxy and python scripts to intercept both request and response to change some window.document properties on the fly. I’ve sucessfully run mitmproxy examples to simply replace HTML page co…

---

## [Capturing Same-Interface traffic (linux, raspberry pi)](https://discourse.mitmproxy.org/t/capturing-same-interface-traffic-linux-raspberry-pi/1552)

<div class="topic-metadata">

**Author:** [@ConfusedVorlon](https://discourse.mitmproxy.org/u/ConfusedVorlon)\
**Replies:** 0\
**Last updated:** [May 28, 2019, 2:30pm UTC](https://discourse.mitmproxy.org/t/capturing-same-interface-traffic-linux-raspberry-pi/1552 "2019-05-28T14:30:28Z")

</div>

Hi, I’m trying to figure out what is going between my remote control app and an LG tv. I have set up mitmproxy as a transparrent proxy running on raspberry pi, following these instructions https://www.dinofizzotti.com…

---

## [Building 'libbrotli' library error](https://discourse.mitmproxy.org/t/building-libbrotli-library-error/1545)

<div class="topic-metadata">

**Author:** [@chankeye](https://discourse.mitmproxy.org/u/chankeye)\
**Replies:** 0\
**Last updated:** [May 17, 2019, 3:26am UTC](https://discourse.mitmproxy.org/t/building-libbrotli-library-error/1545 "2019-05-17T03:26:32Z")

</div>

I have a problem when I install mitmproxy on Windows. I used “pip3 install mitmproxy” to install, but got an error, then I try to install by wsl, but it the same. I know install virtual studio or visualcppbuildtools\_fu…

---

## [Replace json request on websocket](https://discourse.mitmproxy.org/t/replace-json-request-on-websocket/1523)

<div class="topic-metadata">

**Author:** [@Lend](https://discourse.mitmproxy.org/u/Lend)\
**Replies:** 0\
**Last updated:** [April 28, 2019, 12:12pm UTC](https://discourse.mitmproxy.org/t/replace-json-request-on-websocket/1523 "2019-04-28T12:12:28Z")

</div>

I Everyone, I want change only the value “slot” of this request: { type: “u”, slot: 5 }

---

## [How to export projects to format for non mitmproxy users to view?](https://discourse.mitmproxy.org/t/how-to-export-projects-to-format-for-non-mitmproxy-users-to-view/966)

<div class="topic-metadata">

**Author:** [@mitmuser](https://discourse.mitmproxy.org/u/mitmuser)\
**Replies:** 3\
**Last updated:** [February 26, 2019, 6:38pm UTC](https://discourse.mitmproxy.org/t/how-to-export-projects-to-format-for-non-mitmproxy-users-to-view/966 "2019-02-26T18:38:23Z")

</div>

I didn’t see a way to export projects to common formats like plain text. How would that be done for sharing with others who have not heard of and/or don’t use mitmproxy?

---

## [Custom certificate does not work for reverse proxy](https://discourse.mitmproxy.org/t/custom-certificate-does-not-work-for-reverse-proxy/1417)

<div class="topic-metadata">

**Author:** [@adrian777uk](https://discourse.mitmproxy.org/u/adrian777uk)\
**Replies:** 1\
**Last updated:** [February 18, 2019, 4:44am UTC](https://discourse.mitmproxy.org/t/custom-certificate-does-not-work-for-reverse-proxy/1417 "2019-02-18T04:44:02Z")

</div>

Hi, On my client I can do the following curl manually and it works: curl --insecure --cert my\_custom\_cert.pem https://myserver.com:8099/my/get/request But doing it through mitm, where mitm is started like: \*mitmdump …

---

## [Capturing IMAP flows](https://discourse.mitmproxy.org/t/capturing-imap-flows/1413)

<div class="topic-metadata">

**Author:** [@Keshvadi](https://discourse.mitmproxy.org/u/Keshvadi)\
**Replies:** 0\
**Last updated:** [February 7, 2019, 5:12am UTC](https://discourse.mitmproxy.org/t/capturing-imap-flows/1413 "2019-02-07T05:12:19Z")

</div>

Hi, Is there any way to capture IMAP flows?

---

## [Replay a modified request and return the response](https://discourse.mitmproxy.org/t/replay-a-modified-request-and-return-the-response/1412)

<div class="topic-metadata">

**Author:** [@WinterGrascph](https://discourse.mitmproxy.org/u/WinterGrascph)\
**Replies:** 0\
**Last updated:** [February 6, 2019, 12:26pm UTC](https://discourse.mitmproxy.org/t/replay-a-modified-request-and-return-the-response/1412 "2019-02-06T12:26:42Z")

</div>

My script does the following: (done) Forward the original request (done) If the response content contains a know string, then (done) Make a new request with python’s requests library, extract a session cookie Modify th…

---

## [I need to change image on website with mitmproxy](https://discourse.mitmproxy.org/t/i-need-to-change-image-on-website-with-mitmproxy/993)

<div class="topic-metadata">

**Author:** [@Ben.moreno](https://discourse.mitmproxy.org/u/Ben.moreno)\
**Replies:** 3\
**Last updated:** [April 18, 2018, 9:31am UTC](https://discourse.mitmproxy.org/t/i-need-to-change-image-on-website-with-mitmproxy/993 "2018-04-18T09:31:39Z")

</div>

Hello! I need the help of you guys ! I got 2 machines (W7 & linux UBUNTU) and I did mitmproxy to them . what I need is to : change all the ads on specific web to my pictures make all the websites font color to yellow …

---

## [Mitmweb in regular proxy mode receiving unwanted traffic and crashing](https://discourse.mitmproxy.org/t/mitmweb-in-regular-proxy-mode-receiving-unwanted-traffic-and-crashing/1387)

<div class="topic-metadata">

**Author:** [@ravi](https://discourse.mitmproxy.org/u/ravi)\
**Replies:** 1\
**Last updated:** [January 18, 2019, 8:31am UTC](https://discourse.mitmproxy.org/t/mitmweb-in-regular-proxy-mode-receiving-unwanted-traffic-and-crashing/1387 "2019-01-18T08:31:07Z")

</div>

Hi team… I am using mitmproxy in a regular mode listening on port 8088… I have configured my app server (jvm) with this proxy server/host. I see a lot more traffic flowing through this proxy and crashing the proxy. The…

---

## [Accessing Proxy-Authorization header](https://discourse.mitmproxy.org/t/accessing-proxy-authorization-header/1314)

<div class="topic-metadata">

**Author:** [@PranavPrakash52](https://discourse.mitmproxy.org/u/PranavPrakash52)\
**Replies:** 2\
**Last updated:** [November 5, 2018, 5:11am UTC](https://discourse.mitmproxy.org/t/accessing-proxy-authorization-header/1314 "2018-11-05T05:11:26Z")

</div>

Hai everyone, I would like to know if there is any way i can access the Proxy-Authorization header after the connect request has been made. I want to access the header inside the request event if its possible. I’am tryi…

---

## [Custom dump file](https://discourse.mitmproxy.org/t/custom-dump-file/1311)

<div class="topic-metadata">

**Author:** [@Keshvadi](https://discourse.mitmproxy.org/u/Keshvadi)\
**Replies:** 1\
**Last updated:** [November 4, 2018, 11:40am UTC](https://discourse.mitmproxy.org/t/custom-dump-file/1311 "2018-11-04T11:40:39Z")

</div>

Hi. I am new in mitmproxy. I want to save logs, but just a few information like time, URL and size. How can I save a customized log file? Many thanks in advance.

---

## [Transparent mode misconfiguration](https://discourse.mitmproxy.org/t/transparent-mode-misconfiguration/1304)

<div class="topic-metadata">

**Author:** [@Barium](https://discourse.mitmproxy.org/u/Barium)\
**Replies:** 1\
**Last updated:** [October 29, 2018, 2:32pm UTC](https://discourse.mitmproxy.org/t/transparent-mode-misconfiguration/1304 "2018-10-29T14:32:15Z")

</div>

MITMproxy has been setup in transparent mode on Ubuntu 18.04 LTS box. Went through and performed the sysctl changes and NAT changes recommended. All seems normal as no error messages were returned by Linux. MITMProxy wa…

---

## [Using mitmproxy for all HTTP/HTTPS traffic coming from an ipsec vpn server](https://discourse.mitmproxy.org/t/using-mitmproxy-for-all-http-https-traffic-coming-from-an-ipsec-vpn-server/792)

<div class="topic-metadata">

**Author:** [@Tyilo](https://discourse.mitmproxy.org/u/Tyilo)\
**Replies:** 12\
**Last updated:** [October 25, 2018, 4:55am UTC](https://discourse.mitmproxy.org/t/using-mitmproxy-for-all-http-https-traffic-coming-from-an-ipsec-vpn-server/792 "2018-10-25T04:55:37Z")

</div>

Background: I want to use mitmproxy with my iPhone while on 3G. In iOS you can only use a proxy for WiFi connections and not while using mobile data. So instead I can use a VPN server that needs to forward its request th…

---

## [Potential Bug when filtering by specific request header value](https://discourse.mitmproxy.org/t/potential-bug-when-filtering-by-specific-request-header-value/1296)

<div class="topic-metadata">

**Author:** [@selenium34](https://discourse.mitmproxy.org/u/selenium34)\
**Replies:** 0\
**Last updated:** [October 24, 2018, 5:07pm UTC](https://discourse.mitmproxy.org/t/potential-bug-when-filtering-by-specific-request-header-value/1296 "2018-10-24T17:07:56Z")

</div>

I’d like to filter out a specific header (User-Agent which contains parenthesis and spaces), but this is reproducible without those special characters needing escape in regex Steps to reproduce the problem: Launch ‘mit…

---

## [Ignoring Domain](https://discourse.mitmproxy.org/t/ignoring-domain/1274)

<div class="topic-metadata">

**Author:** [@uniQ](https://discourse.mitmproxy.org/u/uniQ)\
**Replies:** 1\
**Last updated:** [October 12, 2018, 6:31pm UTC](https://discourse.mitmproxy.org/t/ignoring-domain/1274 "2018-10-12T18:31:47Z")

</div>

Hi, I am using mitmproxy in transparent mode and want to only accept a certain IP range. For example only 192.XX.XX.XX IP’s. But --ignore-host does not allow me to use regex for IP ranges as I have tried to do the fol…

---

## [Capture HTTPS Traffic without decryption of SSL connection](https://discourse.mitmproxy.org/t/capture-https-traffic-without-decryption-of-ssl-connection/880)

<div class="topic-metadata">

**Author:** [@csgaur](https://discourse.mitmproxy.org/u/csgaur)\
**Replies:** 9\
**Last updated:** [October 3, 2018, 3:33pm UTC](https://discourse.mitmproxy.org/t/capture-https-traffic-without-decryption-of-ssl-connection/880 "2018-10-03T15:33:07Z")

</div>

Hi, I have setup mitmproxy in transparent mode with all HTTP/HTTPS traffic routed to my proxy through firewall. I want to see HTTPS requests without decrypting it as I do not have any requisite certificates for domains. …

---

## [Fomratted output](https://discourse.mitmproxy.org/t/fomratted-output/1260)

<div class="topic-metadata">

**Author:** [@misbahk](https://discourse.mitmproxy.org/u/misbahk)\
**Replies:** 0\
**Last updated:** [October 3, 2018, 9:49am UTC](https://discourse.mitmproxy.org/t/fomratted-output/1260 "2018-10-03T09:49:11Z")

</div>

Hi I would like to get the out put of mitmproxy with intercept on continuously as below and redirect the below output to a file . timestamp; https://google.com 345 200 Will use curl command to hit the url via pro…

---

## [Switch to passthrough for non-HTTP protocols on port 80](https://discourse.mitmproxy.org/t/switch-to-passthrough-for-non-http-protocols-on-port-80/1241)

<div class="topic-metadata">

**Author:** [@EndUser509](https://discourse.mitmproxy.org/u/EndUser509)\
**Replies:** 0\
**Last updated:** [September 18, 2018, 6:32am UTC](https://discourse.mitmproxy.org/t/switch-to-passthrough-for-non-http-protocols-on-port-80/1241 "2018-09-18T06:32:55Z")

</div>

Some sites communicate over port 80 but not using HTTP. One example I see is for instance the Kapersky Mobile Antivirus. In my logs I get: ProtocolException("HTTP protocol error in client request: Bad HTTP request line:…

---

## [Passthrough if SNI is missing for transparent mode](https://discourse.mitmproxy.org/t/passthrough-if-sni-is-missing-for-transparent-mode/1163)

<div class="topic-metadata">

**Author:** [@EndUser509](https://discourse.mitmproxy.org/u/EndUser509)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 6:22am UTC](https://discourse.mitmproxy.org/t/passthrough-if-sni-is-missing-for-transparent-mode/1163 "2018-09-18T06:22:21Z")

</div>

When operating mitmproxy in transparent mode it would be helpful if it could be configured to automatically change all connections without SNI to passthough mode. Maybe something in the line of --set passthrough\_if\_no\_s…

---

## [Capture traffic of device connected to the router](https://discourse.mitmproxy.org/t/capture-traffic-of-device-connected-to-the-router/1203)

<div class="topic-metadata">

**Author:** [@arya6000](https://discourse.mitmproxy.org/u/arya6000)\
**Replies:** 1\
**Last updated:** [September 10, 2018, 8:31am UTC](https://discourse.mitmproxy.org/t/capture-traffic-of-device-connected-to-the-router/1203 "2018-09-10T08:31:41Z")

</div>

I have a device that is connected to my own router. I want to be able to see the http(s) requests being made by the device. However there is no way for me to set the device to use a proxy server. From what I researched t…

[Next page](https://discourse.mitmproxy.org/c/uncategorized/1.md?page=1)
