Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (20 sloc) 0.754 kb
#!/usr/bin/env python
import sys, argparse, os
from libmproxy import proxy, console
if __name__ == '__main__':
parser = argparse.ArgumentParser(usage = "%(prog)s [options]")
console.ConsoleMaster.add_arguments(parser)
options = parser.parse_args()
server = proxy.get_server(parser,options)
spec = ""
for i in ["LANG", "LC_CTYPE", "LC_ALL"]:
spec += os.environ.get(i, "").lower()
if "utf" not in spec:
print >> sys.stderr, "Error: mitmproxy requires a UTF console environment."
print >> sys.stderr, "Set your LANG enviroment variable to something like en_US.UTF-8"
sys.exit(1)
m = console.ConsoleMaster(server, options)
try:
m.run()
except KeyboardInterrupt:
pass
Jump to Line
Something went wrong with that request. Please try again.