Comments (6)
Use the absolute path/usr/bin/ldapdomaindump
from ldapdomaindump.
@lightkun-yagami I was having this same issue. If you're running ldapdomaindump straight out of what comes preinstalled with Kali Linux, you're likely suffering from an out-of-date dependency. The error itself is happening here:
File "/usr/local/lib/python2.7/dist-packages/ldap3/utils/ntlm.py", line 496, in ntowf_v2
password_digest = hashlib.new('MD4', self._password.encode('utf-16-le')).digest()
ldap3 had a commit that expanded this functionality since MD4 is a deprecated hash that isn't covered by more modern OpenSSL. You can learn more here and here
Long story short, you can try to update your version of ldap3 by running pip install ldap3 --upgrade
though you may risk breaking something else in your system.
The safest bet and what I ended up doing was cloning ldapdomaindump's git, starting a virtual environment, install the new dependencies inside the venv with requirements.txt, and run ldapdomaindump.py from the venv.
from ldapdomaindump.
I too am getting the following error
cybersoldier@cybersoldier-virtual-machine:~/Documents/marvel.local$ sudo ldapdomaindump ldaps://192.168.226.128 -u 'MARVEL\fcastle' -p Password2
[*] Connecting to host...
[*] Binding to host
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/ldap3/strategy/base.py", line 823, in sending
self.connection.socket.sendall(encoded_message)
File "/usr/lib/python3.10/ssl.py", line 1240, in sendall
return super().sendall(data, flags)
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/ldapdomaindump", line 4, in <module>
__import__('pkg_resources').run_script('ldapdomaindump==0.9.4', 'ldapdomaindump')
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 656, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1453, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.10/dist-packages/ldapdomaindump-0.9.4-py3.10.egg/EGG-INFO/scripts/ldapdomaindump", line 3, in <module>
ldapdomaindump.main()
File "/usr/local/lib/python3.10/dist-packages/ldapdomaindump-0.9.4-py3.10.egg/ldapdomaindump/__init__.py", line 940, in main
if not c.bind():
File "/usr/local/lib/python3.10/dist-packages/ldap3/core/connection.py", line 563, in bind
response = self.do_ntlm_bind(controls)
File "/usr/local/lib/python3.10/dist-packages/ldap3/core/connection.py", line 1282, in do_ntlm_bind
response = self.post_send_single_response(self.send('bindRequest', request, controls))
File "/usr/local/lib/python3.10/dist-packages/ldap3/strategy/base.py", line 299, in send
self.sending(ldap_message)
File "/usr/local/lib/python3.10/dist-packages/ldap3/strategy/base.py", line 834, in sending
raise communication_exception_factory(LDAPSocketSendError, type(e)(str(e)))(self.connection.last_error)
ldap3.core.exceptions.LDAPSocketSendError: socket sending error[Errno 104] Connection reset by peer
from ldapdomaindump.
Use the absolute path
/usr/bin/ldapdomaindump
That worked for me! Thank you!
from ldapdomaindump.
Use the absolute path
/usr/bin/ldapdomaindump
Worked for me also, thanks a bunch!!!
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
- 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.