Is it possible to access a remote mitmproxy instance?

Hi,

I am using mtimproxy in transparent mode to proxy test devices via a router. This works fine, however I want to be able to remotely access the mitmproxy instance (specifically mitmdump), in order to dump the HAR files.
Is there any capability for this within mitmproxy, like a http server?

Thanks

There’s a few ways I know of to accomplish what you’re looking for:

  1. MITMWeb will give you a Web UI to download the native capture file, and you can use mitmdump with the har_dump.py script after the fact if you need a HAR
  2. You can always use a separate NGINX/NodeJS Express Server/whatever to serve the assets as downloadable files from the capture device. I use Express running in a Docker container for this as described in their documentation
2 Likes