如何在python中计算NTLM哈希? [英] How to calculate NTLM hash in python?
本文介绍了如何在python中计算NTLM哈希?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在python中计算passowrd的NTLM哈希?是否有任何库或示例代码?
How can I calculate NTLM hash of a passowrd in python? Is there any library or sample code?
我想用python(如Cain& Abel)编写NTLM暴力工具
I want it for writing a NTLM brute force tools with python (Like Cain & Abel )
推荐答案
实际上使用起来非常简单hashlib
此处
It is actually very quite simple use hashlib
here
import hashlib,binascii
hash = hashlib.new('md4', "password".encode('utf-16le')).digest()
print binascii.hexlify(hash)
或者您还可以在此处
这篇关于如何在python中计算NTLM哈希?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文