Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running mitmproxy on macOS Sierra: traffic not passing through

Tags:

mitmproxy

I have installed mitmproxy with homebrew.

mitmproxy --version
Mitmproxy version: 2.0.0 (release version)
Python version: 3.6.0
Platform: Darwin-16.3.0-x86_64-i386-64bit
SSL version: OpenSSL 1.1.0e  16 Feb 2017
Mac version: 10.12.2 ('', '', '') x86_64

mitmproxy -T --host

And then point a browser at mitm.it and I see the message "If you can see this, traffic is not passing through mitmproxy." Is there a known problem or fix? If not where should I investigate?

like image 299
tonyofthewoods Avatar asked Mar 08 '17 20:03

tonyofthewoods


1 Answers

I was looking for Android solution , and I got it working once I changed the proxy port to 8080 . I had initially set the port to 8888 for Charles proxy .

FOr the complete steps , you could follow ::

Medium Blog to set it up

Or the Charles Proxy Config @ Android Config

Complete Steps (taken from second link)::

  1. Go to mitm.it from your device and download the MITM certificate.

  2. Name the certificate and okay it as a trusted certificate. Ensure that you disable or remove it when complete.

  3. Once the certificate is installed, you are prompted to set up a PIN.
  4. When prompted, add the new PIN.
  5. Go to Settings > Wifi.
  6. Press and hold down the power key on the Wifi Network device you are currently connected to.
  7. When the modal displays, select Modify Network.
  8. Select Show Advanced Options to display proxying options.
  9. Under Proxy, select Manual.
  10. In the Proxy Host Name box, enter the IPV4 Address you previously saved from your development machine.
  11. In the Proxy Port field, enter 8080(this is the default port for mitm), as when configuring Charles.
like image 95
1nullpointer Avatar answered Nov 13 '22 07:11

1nullpointer