ly4k / Certipy

Tool for Active Directory Certificate Services enumeration and abuse
MIT License
2.43k stars 338 forks source link

channel binding error on running find. any ideas ? Thanks! #172

Closed russokiwi closed 1 year ago

russokiwi commented 1 year ago

[+] Trying to resolve 'MY.LAN' at '172.16.200.130' [+] Resolved 'MY.LAN' from cache: 192.168.16.2 [+] Authenticating to LDAP server [-] Got error: Connection.init() got an unexpected keyword argument 'channel_binding' Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/certipy_ad-4.8.1-py3.11.egg/certipy/entry.py", line 60, in main actionsoptions.action File "/usr/local/lib/python3.11/dist-packages/certipy_ad-4.8.1-py3.11.egg/certipy/commands/parsers/find.py", line 12, in entry find.entry(options) File "/usr/local/lib/python3.11/dist-packages/certipy_ad-4.8.1-py3.11.egg/certipy/commands/find.py", line 1179, in entry find.find() File "/usr/local/lib/python3.11/dist-packages/certipy_ad-4.8.1-py3.11.egg/certipy/commands/find.py", line 165, in find connection = self.connection ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/certipy_ad-4.8.1-py3.11.egg/certipy/commands/find.py", line 124, in connection self._connection.connect() File "/usr/local/lib/python3.11/dist-packages/certipy_ad-4.8.1-py3.11.egg/certipy/lib/ldap.py", line 77, in connect self.connect(version=ssl.PROTOCOL_TLSv1_2) File "/usr/local/lib/python3.11/dist-packages/certipy_ad-4.8.1-py3.11.egg/certipy/lib/ldap.py", line 125, in connect ldap_conn = ldap3.Connection( ^^^^^^^^^^^^^^^^^ TypeError: Connection.init() got an unexpected keyword argument 'channel_binding'

ly4k commented 1 year ago

Thanks for reporting. It was a bug made by me in the previous version. It's fixed in 4.8.2. pip install -U certipy-ad should fix it for you