GithubHelp home page GithubHelp logo

Comments (5)

dirkjanm avatar dirkjanm commented on July 19, 2024

Is this on HTB? Which host (then I can try to reproduce this myself)? Also are you using python2 or 3? Do you get the same error when you update ldap3?

from ldapdomaindump.

grease082 avatar grease082 commented on July 19, 2024

thanks for the fast response!

yes this is on htb. It is the forest machine.

Iā€™m using python3!

With python2 I get the following error:
root@kali:~/Downloads/ldapdomaindump# python2 ldapdomaindump.py 10.10.10.161
[] Connecting as anonymous user, dumping will probably fail. Consider specifying a username/password to login with
[
] Connecting to host...
[] Binding to host
[+] Bind OK
[
] Starting domain dump
Traceback (most recent call last):
File "ldapdomaindump.py", line 3, in
ldapdomaindump.main()
File "/root/Downloads/ldapdomaindump/ldapdomaindump/init.py", line 944, in main
dd.domainDump()
File "/root/Downloads/ldapdomaindump/ldapdomaindump/init.py", line 422, in domainDump
rw.generateUsersReport(self)
File "/root/Downloads/ldapdomaindump/ldapdomaindump/init.py", line 789, in generateUsersReport
dd.mapGroupsIdsToDns()
File "/root/Downloads/ldapdomaindump/ldapdomaindump/init.py", line 350, in mapGroupsIdsToDns
gid = int(group.objectSid.value.split('-')[-1])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb7 in position 15: ordinal not in range(128)

Yes I get the same error after the update of ldap3!
Screen Shot 2020-02-06 at 12 46 57

from ldapdomaindump.

dirkjanm avatar dirkjanm commented on July 19, 2024

This is probably a HTB specific thing. ldapdomaindump relies on the schema definitions to parse objects into a readable type. However I think the schema was (intentionally?) modified on this box, which makes the queries that try to load the schema fail. Therefor it doesn't decode the binary SID into a readable SID and thus it throws all kinds of errors. I could fix this specific instance but without the schema there will be many parts of the code that fail.

from ldapdomaindump.

grease082 avatar grease082 commented on July 19, 2024

Okay, thank you very much for the fast clarification. I'll query the domain in a different way then.

from ldapdomaindump.

dirkjanm avatar dirkjanm commented on July 19, 2024

Closing this since dumping everything without access to the schema is not something that will be supported.

from ldapdomaindump.

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.