GithubHelp home page GithubHelp logo

Comments (7)

dirkjanm avatar dirkjanm commented on July 19, 2024

If the variable isn't set then there must be some exception triggered that is not caught in a try block, since otherwise the code would just continue.
I think that the treading of ntlmrelayx somehow hides it.

To troubleshoot, I suggest changing the code here with an extra try/except block:

try:
    domainDumper.domainDump()
except Exception, e:
    logging.error("Dumping domain info FAILED")
    logging.error(str(e))

This should give some more info about what is failing

from ldapdomaindump.

blark avatar blark commented on July 19, 2024

Thanks I will add that. I went into the source and added debugging it's dying at the getAllUsers() function. Adding the exception handler now to see why...

Edit: weird for some reason it's not printing out the exception. You can see the debug print statements I added in the __init__.py of ldapdomaindump between the output from ntlmrelayx...

[*] User is not a Domain Admin
[*] Dumping domain info for first time
starting domain dump
getting users
[*] Authenticating against 

from ldapdomaindump.

dirkjanm avatar dirkjanm commented on July 19, 2024

I don't know how large the domain is that you are trying to dump, but it can take a while to get all the data. Did you try running the tool standalone (not as part of ntlmrelayx) to see if it produces an error then?

from ldapdomaindump.

blark avatar blark commented on July 19, 2024

You're totally right. I was just being impatient. DOH! Thanks!

Edit: in that case, it seems that the tweak I made (moving the boolean assign to the first line) makes sense since that thread will hang until the dump is done. This way hundreds of dumps aren't started in a busy network... Do you want me to make the change and submit a pull?

from ldapdomaindump.

dirkjanm avatar dirkjanm commented on July 19, 2024

Yes good point, you could also add the exception handler from above so that in case something does go wrong, it will be shown properly.

from ldapdomaindump.

blark avatar blark commented on July 19, 2024

Done. They already accepted the pull, wow fast ;) Hey thanks again for the help and quick responses.

I have another question regarding ntlmrelayx.py what is the best way to get in touch with you?

from ldapdomaindump.

dirkjanm avatar dirkjanm commented on July 19, 2024

Easiest is to email me at dirkjan [at] sanoweb.nl
Closing this since it should be fixed now, thanks for the contribution :)

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.