Esempio 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()
Esempio n. 2
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()
Esempio n. 3
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()
Esempio n. 4
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()