hashing.py 文件源码

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

项目:xf 作者: red-green 项目源码 文件源码
def bruteforce():
    out = raw_input('hash to crack> ')
    print 'algorithms supported: '+', '.join(hashlib.algorithms_available)
    algo = raw_input('algorithm to use> ')
    if not algo in hashlib.algorithms_available:
        print 'invalid algorithm'
        return
    fn = raw_input('path to password list> ').strip()
    def check(pw):
        h = hashlib.new(algo)
        h.update(pw)
        if h.hexdigest() == out:
            return True
        return False
    zc = zippycrack(check,fn,numthreads=8)
    print zc.run()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号