mitmproxy/docs/scripts/options.py

15 lines
372 B
Python
Raw Normal View History

2018-03-24 22:14:58 +00:00
#!/usr/bin/env python
from mitmproxy import options, optmanager
from mitmproxy.tools import dump, console, web
masters = {
"mitmproxy": console.master.ConsoleMaster,
"mitmdump": dump.DumpMaster,
"mitmweb": web.master.WebMaster
}
for name, master in masters.items():
opts = options.Options()
inst = master(opts)
print(optmanager.dump_dicts(opts))