channel.py 文件源码

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

项目:weevely3-stealth 作者: edibledinos 项目源码 文件源码
def _additional_handlers(self):

        handlers = []

        if self.session.get('proxy'):
            protocol, host, port = self._get_proxy()

            if protocol and host and port:
                handlers.append(
                    sockshandler.SocksiPyHandler(
                        protocol,
                        host,
                        port
                    )
                )
            else:
                raise ChannelException(messages.channels.error_proxy_format)

        # Skip certificate checks
        ctx = ssl.create_default_context()
        ctx.check_hostname = False
        ctx.verify_mode = ssl.CERT_NONE

        handlers.append(urllib2.HTTPSHandler(context=ctx))

        return handlers
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号