Comments (3)
Hi PAFsec,
i decided to implement a different solution to your problem. Could you please check if it works?
Let me know if you still have the decoding problem.
Thanks for your bug report.
from ntdsxtract.
Hello,
I just checked your modifications.
If I only give the --supplcred
argument, it looks like it work well.
Although, giving all the needed inputs to retrieve passwords hashes got me the same kind of decoding error than previously mentionned:
File "dsusers.py", line 486, in <module>
processUser(user)
File "dsusers.py", line 181, in processUser
creds = user.getSupplementalCredentials()
File "/opt/ntdsxtract/ntds/dsobjects.py", line 255, in getSupplementalCredentials
return dsSupplCredentials(tmpdec)
File "/opt/ntdsxtract/ntds/dsobjects.py", line 507, in __init__
self.ParseUserProperties(text)
File "/opt/ntdsxtract/ntds/dsobjects.py", line 575, in ParseUserProperties
offset = self.ParseUserProperty(text, offset)
File "/opt/ntdsxtract/ntds/dsobjects.py", line 618, in ParseUserProperty
self.Password = unicode(unhexlify(text[offset:offset+ValueLength]).decode('utf-16')).encode('utf8')
File "/usr/lib64/python2.7/encodings/utf_16.py", line 16, in decode
return codecs.utf_16_decode(input, errors, True)
UnicodeDecodeError: 'utf16' codec can't decode bytes in position 100-101: illegal encoding
Thank you for your work.
from ntdsxtract.
Hi PAFsec,
here is another version. Unfortunately as I cannot really reproduce the error, I cannot do real testing. Could you please test this version. In case of any exception it should dump the data in hex which should work fine.
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
- Windows Server 2016 password hashes length exception HOT 6
- 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.