Giter Site home page Giter Site logo

Comments (3)

csababarta avatar csababarta commented on July 2, 2024

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.

PAFsec avatar PAFsec commented on July 2, 2024

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.

csababarta avatar csababarta commented on July 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.