Running mitmproxy in some "script-only mode"

I have created a script that modifies some requests/responses which can be used with mitmproxy by running

mitmproxy -s

This works perfectly but I was wondering if you could:

  1. disable the logging of request/responses (in memory I guess?)
  2. disable the TUI

as I only need my script to modify requests/responses and don’t need to manually inspect them,

What I wanted was just mitmdump -s :sweat_smile:

1 Like