Comments (5)
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.
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!
from ldapdomaindump.
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.
Okay, thank you very much for the fast clarification. I'll query the domain in a different way then.
from ldapdomaindump.
Closing this since dumping everything without access to the schema is not something that will be supported.
from ldapdomaindump.
Related Issues (20)
- Bad operation type HOT 5
- 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
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.