当前位置: 首页>>代码示例>>Python>>正文


Python ServerConnectionFactory.protocol方法代码示例

本文整理汇总了Python中ServerConnectionFactory.ServerConnectionFactory.protocol方法的典型用法代码示例。如果您正苦于以下问题:Python ServerConnectionFactory.protocol方法的具体用法?Python ServerConnectionFactory.protocol怎么用?Python ServerConnectionFactory.protocol使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ServerConnectionFactory.ServerConnectionFactory的用法示例。


在下文中一共展示了ServerConnectionFactory.protocol方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: proxyViaSSL

# 需要导入模块: from ServerConnectionFactory import ServerConnectionFactory [as 别名]
# 或者: from ServerConnectionFactory.ServerConnectionFactory import protocol [as 别名]
 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,代码行数:10,代码来源:ClientRequest.py

示例2: proxyViaSSL

# 需要导入模块: from ServerConnectionFactory import ServerConnectionFactory [as 别名]
# 或者: from ServerConnectionFactory.ServerConnectionFactory import protocol [as 别名]
 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,代码行数:7,代码来源:ClientRequest.py

示例3: proxyViaHTTP

# 需要导入模块: from ServerConnectionFactory import ServerConnectionFactory [as 别名]
# 或者: from ServerConnectionFactory.ServerConnectionFactory import protocol [as 别名]
 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,代码行数:6,代码来源:ClientRequest.py

示例4: proxyViaHTTP

# 需要导入模块: from ServerConnectionFactory import ServerConnectionFactory [as 别名]
# 或者: from ServerConnectionFactory.ServerConnectionFactory import protocol [as 别名]
 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,代码行数:7,代码来源:ClientRequest.py

示例5: proxyRequest

# 需要导入模块: from ServerConnectionFactory import ServerConnectionFactory [as 别名]
# 或者: from ServerConnectionFactory.ServerConnectionFactory import protocol [as 别名]
 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,代码行数:6,代码来源:ClientRequest.py

示例6: proxy_via_http

# 需要导入模块: from ServerConnectionFactory import ServerConnectionFactory [as 别名]
# 或者: from ServerConnectionFactory.ServerConnectionFactory import protocol [as 别名]
 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,代码行数:6,代码来源:ClientRequest.py

示例7: proxy_via_ssl

# 需要导入模块: from ServerConnectionFactory import ServerConnectionFactory [as 别名]
# 或者: from ServerConnectionFactory.ServerConnectionFactory import protocol [as 别名]
 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,代码行数:6,代码来源:ClientRequest.py


注:本文中的ServerConnectionFactory.ServerConnectionFactory.protocol方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。