Exemplo n.º 1
0
def start_filter_proxy(options):
	print "Press Ctrl+C to stop the proxy"
	port = int(options.port)
	config = proxy.ProxyConfig(port=port)
	server = ProxyServer(config)
	m = HeaderFilterProxy(server)
	m.run()
Exemplo n.º 2
0
def start_filter_proxy(options):
    print "Press Ctrl+C to stop the proxy"
    port = int(options.port)
    config = proxy.ProxyConfig(
        cacert=os.path.expanduser("~/.mitmproxy/mitmproxy-ca.pem"))
    server = proxy.ProxyServer(config, port)
    m = HeaderFilterProxy(server)
    m.run()