XXEServer.py 文件源码

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

项目:xxetimes 作者: ropnop 项目源码 文件源码
def displayContents(contents, isBase64=False):
    '''my hacky way to not display duplicate contents. 
    for some reason xml sends back to back requests
    and i only want to show the first one'''
    global LAST_CONTENTS
    newContents = sha1(contents).hexdigest()
    if LAST_CONTENTS != newContents:
        print "[+] Received response, displaying\n"
        if not isBase64:
            print urllib.unquote(contents)
        else:
            print urllib.unquote(contents).decode('base64')
        LAST_CONTENTS = newContents
        print "------\n"
    return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号