mando.me.py 文件源码

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

项目:mando.me 作者: z0noxz 项目源码 文件源码
def send(url, headers, timeout):
        request = urllib.request.Request(url)
        data = ""

        # Add password key
        request.add_header(_gs["smplshll_main_password_var"], _gs["smplshll_main_password"])

        for header in headers.keys():
            request.add_header(header, Utility.crypt(_gs["smplshll_input_password"], headers[header]))

        if timeout > 0:
            data = urllib.request.urlopen(request, timeout = timeout).read()
        else:
            data = urllib.request.urlopen(request).read()

        return Utility.crypt(_gs["smplshll_input_password"], data, False) if _gs["smplshll_response_encryption"] else data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号