We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quick&Dirty-Fix: diff --git a/ntds/dsencryption.py b/ntds/dsencryption.py index 5a5aaeb..55bb470 100755 --- a/ntds/dsencryption.py +++ b/ntds/dsencryption.py @@ -64,5 +64,5 @@ def dsDecryptSingleHash(rid, enc_hash): (des_k1,des_k2) = sid_to_key(rid) d1 = DES.new(des_k1, DES.MODE_ECB) d2 = DES.new(des_k2, DES.MODE_ECB) - hash = d1.decrypt(enc_hash[:8]) + d2.decrypt(enc_hash[8:]) - return hash \ No newline at end of file + hash = d1.decrypt(enc_hash[:8]) + d2.decrypt(enc_hash[8:16]) + return hash[:16]
Quick&Dirty-Fix:
diff --git a/ntds/dsencryption.py b/ntds/dsencryption.py index 5a5aaeb..55bb470 100755 --- a/ntds/dsencryption.py +++ b/ntds/dsencryption.py @@ -64,5 +64,5 @@ def dsDecryptSingleHash(rid, enc_hash): (des_k1,des_k2) = sid_to_key(rid) d1 = DES.new(des_k1, DES.MODE_ECB) d2 = DES.new(des_k2, DES.MODE_ECB) - hash = d1.decrypt(enc_hash[:8]) + d2.decrypt(enc_hash[8:]) - return hash \ No newline at end of file + hash = d1.decrypt(enc_hash[:8]) + d2.decrypt(enc_hash[8:16]) + return hash[:16]
This works perfect!!!Thanks
Originally posted by @0pa9ue in #30 (comment)
The text was updated successfully, but these errors were encountered:
Hello, this can extract the hash value, but the extracted hash is wrong. How can I solve it.... :)
Sorry, something went wrong.
No branches or pull requests
This works perfect!!!Thanks
Originally posted by @0pa9ue in #30 (comment)
The text was updated successfully, but these errors were encountered: