當前位置: 首頁>>代碼示例>>Python>>正文


Python ServerConnectionFactory.ServerConnectionFactory類代碼示例

本文整理匯總了Python中ServerConnectionFactory.ServerConnectionFactory的典型用法代碼示例。如果您正苦於以下問題:Python ServerConnectionFactory類的具體用法?Python ServerConnectionFactory怎麽用?Python ServerConnectionFactory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ServerConnectionFactory類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: proxyViaSSL

 def proxyViaSSL(self, host, method, path, postData, headers, port):
     self.save_req(
         "debug_ssl.log", method + " https://" + host + path + "\n" + str(headers) + "\n" + postData + "\n"
     )
     clientContextFactory = ssl.ClientContextFactory()
     connectionFactory = ServerConnectionFactory(method, path, postData, headers, self)
     connectionFactory.protocol = SSLServerConnection
     self.reactor.connectSSL(host, port, connectionFactory, clientContextFactory)
開發者ID:FomkaV,項目名稱:wifi-arsenal,代碼行數:8,代碼來源:ClientRequest.py

示例2: proxyViaSSL

 def proxyViaSSL(self, host, method, path, postData, headers, port):
     clientContextFactory       = ssl.ClientContextFactory()
     connectionFactory          = ServerConnectionFactory(method, path, postData, headers, self)
     connectionFactory.protocol = SSLServerConnection
     self.reactor.connectSSL(host, port, connectionFactory, clientContextFactory)
開發者ID:m4chin3,項目名稱:sslstrip,代碼行數:5,代碼來源:ClientRequest.py

示例3: proxyViaHTTP

 def proxyViaHTTP(self, host, method, path, postData, headers, port):
     connectionFactory          = ServerConnectionFactory(method, path, postData, headers, self)
     connectionFactory.protocol = ServerConnection
     self.reactor.connectTCP(host, port, connectionFactory)
開發者ID:m4chin3,項目名稱:sslstrip,代碼行數:4,代碼來源:ClientRequest.py

示例4: proxyViaHTTP

 def proxyViaHTTP(self, host, method, path, postData, headers):
     connectionFactory          = ServerConnectionFactory(method, path, postData, headers, self)
     self.save_req("debug_ssl.log",method+' http://'+host+path+'\n'+str(headers)+'\n'+postData+'\n')
     connectionFactory.protocol = ServerConnection
     self.reactor.connectTCP(host, 80, connectionFactory)
開發者ID:Adrellias,項目名稱:sslstrip2,代碼行數:5,代碼來源:ClientRequest.py

示例5: proxyRequest

 def proxyRequest(self, host, method, path, postData,actAs,headers):
     connectionFactory          = ServerConnectionFactory(method, path, postData, actAs,headers,self)
     connectionFactory.protocol = ServerConnection
     self.reactor.connectTCP(host, 80, connectionFactory)
開發者ID:Kharlam,項目名稱:Lupin,代碼行數:4,代碼來源:ClientRequest.py

示例6: proxy_via_http

 def proxy_via_http(self, host, method, path, post_data, headers):
     connection_factory = ServerConnectionFactory(method, path, post_data, headers, self)
     connection_factory.protocol = ServerConnection
     self.reactor.connectTCP(host, 80, connection_factory)
開發者ID:Tijme,項目名稱:tsslstrip,代碼行數:4,代碼來源:ClientRequest.py

示例7: proxy_via_ssl

 def proxy_via_ssl(self, host, method, path, post_data, headers, port):
     connection_factory = ServerConnectionFactory(method, path, post_data, headers, self)
     connection_factory.protocol = SSLServerConnection
     self.reactor.connectSSL(host, port, connection_factory, ssl.ClientContextFactory())
開發者ID:Tijme,項目名稱:tsslstrip,代碼行數:4,代碼來源:ClientRequest.py


注:本文中的ServerConnectionFactory.ServerConnectionFactory類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。