Comments (6)
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
from ntdsxtract.
Why didn't you supply a link_table?
from ntdsxtract.
Why didn't you supply a link_table?
You mean for debugging here or passing it to dscomputers.py? The script doesn't seem to take a link table as an argument and the link table file is a production copy I'd like to keep private.
from ntdsxtract.
I was confusing dscomputers.py with dsusers.py, which takes that as a second argument.
from ntdsxtract.
I am getting the same error on dsusers.py.
from ntdsxtract.
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]
from ntdsxtract.
Related Issues (20)
- dscomputers.py --passwordhashes broken HOT 3
- Error ! No module named Crypto.Hash HOT 6
- Dump cannot be completed? HOT 3
- v.1.3.3 - Error! 1369 HOT 6
- Server 2012 R2 HOT 6
- records processedKilled
- KeyError: 1528 HOT 1
- Hashes not being genereated and error HOT 1
- Output errors HOT 4
- Output when running dsusers.py HOT 2
- No output being produced HOT 1
- I can not get the password hashes from the Windows Server 2012 "ntds.dit" file HOT 1
- Error in sys.excepthook: HOT 1
- dsusers
- > Quick&Dirty-Fix: HOT 1
- TypeError: function takes exactly 1 argument (3 given) when processing principal HOT 7
- python3 ERROR HOT 3
- dsusers.py not extracting disabled account information. HOT 4
- Add ability to produce summary files of user account control attributes. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntdsxtract.