spoof_tcp_proxy.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:TigerHost 作者: naphatkrit 项目源码 文件源码
def connectServer(self, hostname, port):
        """Tell the proxy what the end server is and start the connection. This closes the connection to the spoofed
        server.

        :param str hostname:
        :param int port:
        :param DeferredQueue server_queue:
        :param DeferredQueue client_queue:
        """
        # close connection
        spoof_client_queue = self.spoof_client_queue

        # setting to None first prevents a race condition
        self.spoof_client_queue = None
        self.spoof_server_queue = None
        spoof_client_queue.put(False)

        self._connectServer(
            hostname, port, self.server_queue, self.client_queue)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号