main.py 文件源码

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

项目:ctf-library 作者: Hcamael 项目源码 文件源码
def unmake(self, st):
        p = st.split(".")
        if len(p) != 2:
            return None

        s = self.decode(p[1].decode('hex'))
        if s == None:
            return None
        h = SHA.new()
        h.update(self.mac_key)
        h.update(s)
        f = h.hexdigest()
        print s
        if p[0] != f:
            return None

        kv = urlparse.parse_qsl(s)
        ret ={}
        for k, v in kv:
            ret[k] = v
        return ret
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号