class ThreadPumpkinProxy(QObject): '''Thread: run Pumpkin-Proxy mitmproxy on brackground''' send = pyqtSignal(object) @staticmethod def isMitmProxyInstalled(): return pump_proxy_lib def __init__(self, session=None): QObject.__init__(self) self.session = session def start(self): print "[*] Pumpkin-Proxy running on port:8080 \n" opts = options.Options(listen_port=8080, mode="transparent") config = proxy.ProxyConfig(opts) state = flow.State() server = ProxyServer(config) server.allow_reuse_address = True self.m = MasterHandler(opts, server, state, self.session) self.m.run(self.send) def stop(self): self.m.shutdown() print 'Thread::[{}] successfully stopped.'.format(self.objectName())
def start(self): print "[*] Pumpkin-Proxy running on port:8080 \n" opts = options.Options(listen_port=8080, mode="transparent") config = proxy.ProxyConfig(opts) state = flow.State() server = ProxyServer(config) server.allow_reuse_address = True self.m = MasterHandler(opts, server, state, self.session) self.m.run(self.send)
def start(self): print "[*] Pumpkin-Proxy running on port:8080 \n" opts = options.Options(listen_port=8080,mode="transparent") config = proxy.ProxyConfig(opts) state = flow.State() server = ProxyServer(config) server.allow_reuse_address = True self.m = MasterHandler(opts,server,state,self.session) self.m.run(self.send)
class ThreadPumpkinProxy(QObject): '''Thread: run Pumpkin-Proxy mitmproxy on brackground''' send = pyqtSignal(object) def __init__(self,session=None): QObject.__init__(self) self.session = session def start(self): print "[*] Pumpkin-Proxy running on port:8080 \n" opts = options.Options(listen_port=8080,mode="transparent") config = proxy.ProxyConfig(opts) state = flow.State() server = ProxyServer(config) server.allow_reuse_address = True self.m = MasterHandler(opts,server,state,self.session) self.m.run(self.send) def stop(self): self.m.shutdown() print 'Thread::[{}] successfully stopped.'.format(self.objectName())