Comments (7)
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.
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.
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.
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.
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.
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.
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)
- TypeError: a bytes-like object is required, not 'str' HOT 2
- Requests domain even when domain is specified HOT 2
- Error installing from source HOT 1
- Deprecation warning due to invalid escape sequences HOT 1
- UnicodeDecodeError HOT 1
- MemoryError During handling of the above exception, another exception occurred: HOT 1
- I read your post https://dirkjanm.io/active-directory-forest-trusts-part-one-how-does-sid-filtering-work/, and here is some questions I want to ask HOT 1
- TypeError: Missing required parameter 'digestmod' HOT 2
- [EXCEPTION] Tool throw exception while dumping HOT 3
- Output formatter error HOT 1
- Dependencies in readme.md incorrect.
- How to use with Davmail? HOT 1
- AttributeError: 'list' object has no attribute 'replace' HOT 2
- TypeError: bad operand type for abs(): 'str'
- Dependency on future
- Error when running ldapdomaindump HOT 6
- Simple Authentication Error with UID username HOT 1
- Generating HTML Replace Issue and No HTML
- gid = int(group.objectSid.value.split('-')[-1]) TypeError: a bytes-like object is required, not 'str' HOT 2
- No support for LDAP Channel Binding. HOT 3
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 ldapdomaindump.