Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Last active June 21, 2023 21:24
Show Gist options
  • Select an option

  • Save gregjhogan/bcd43fd7dceb0540fac42fd323a1ce7b to your computer and use it in GitHub Desktop.

Select an option

Save gregjhogan/bcd43fd7dceb0540fac42fd323a1ce7b to your computer and use it in GitHub Desktop.
setup mitmproxy local proxy for inspecting traffic
#!/bin/bash -ex
# first go to http://mitm.it/ and follow instructions
# then got to chrome://settings/certificates -> Authorities and import: ~/.mitmproxy/mitmproxy-ca-cert.pem
docker run --rm -it -v ~/.mitmproxy:/home/mitmproxy/.mitmproxy -p 8080:8080 -p 127.0.0.1:8081:8081 mitmproxy/mitmproxy mitmweb --web-host 0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment