i used command main.py auth -pfx .\administrator.pfx -dc-ip 192.168.0.200 -ldap-shell -debug
[] Connecting to 'ldaps://192.168.0.200:636'
[] Authenticated to '192.168.0.200' as: u:PADRON\Administrator
[-] Got error: module 'collections' has no attribute 'Callable'
Traceback (most recent call last):
File "Certipy-main\main.py", line 60, in main
actionsoptions.action
File "Certipy-main\certipy\commands\parsers\auth.py", line 12, in entry
auth.entry(options)
File "Certipy-main\certipy\commands\auth.py", line 658, in entry
authenticate.authenticate()
File "Certipy-main\certipy\commands\auth.py", line 159, in authenticate
return self.ldap_authentication()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Certipy-main\certipy\commands\auth.py", line 337, in ldap_authentication
ldap_shell.cmdloop()
File "Python311\Lib\cmd.py", line 108, in cmdloop
import readline
File "Python311\Lib\site-packages\readline.py", line 34, in
rl = Readline()
^^^^^^^^^^
File "Python311\Lib\site-packages\pyreadline\rlmain.py", line 422, in init
BaseReadline.init(self)
File "Python311\Lib\site-packages\pyreadline\rlmain.py", line 62, in init
mode.init_editing_mode(None)
File "Python311\Lib\site-packages\pyreadline\modes\emacs.py", line 633, in init_editing_mode
self._bind_key('space', self.self_insert)
File "Python311\Lib\site-packages\pyreadline\modes\basemode.py", line 162, in _bind_key
if not callable(func):
^^^^^^^^^^^^^^
File "Python311\Lib\site-packages\pyreadline\py3k_compat.py", line 8, in callable
return isinstance(x, collections.Callable)
^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Callable'
This error is not related to the Certipy source code. It's related to pyreadline on Windows. I found the solution for you: https://stackoverflow.com/a/73353426.
i used command
main.py auth -pfx .\administrator.pfx -dc-ip 192.168.0.200 -ldap-shell -debug
[] Connecting to 'ldaps://192.168.0.200:636' [] Authenticated to '192.168.0.200' as: u:PADRON\Administrator [-] Got error: module 'collections' has no attribute 'Callable' Traceback (most recent call last): File "Certipy-main\main.py", line 60, in main actionsoptions.action File "Certipy-main\certipy\commands\parsers\auth.py", line 12, in entry auth.entry(options) File "Certipy-main\certipy\commands\auth.py", line 658, in entry authenticate.authenticate() File "Certipy-main\certipy\commands\auth.py", line 159, in authenticate return self.ldap_authentication() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "Certipy-main\certipy\commands\auth.py", line 337, in ldap_authentication ldap_shell.cmdloop() File "Python311\Lib\cmd.py", line 108, in cmdloop import readline File "Python311\Lib\site-packages\readline.py", line 34, in
rl = Readline()
^^^^^^^^^^
File "Python311\Lib\site-packages\pyreadline\rlmain.py", line 422, in init
BaseReadline.init(self)
File "Python311\Lib\site-packages\pyreadline\rlmain.py", line 62, in init
mode.init_editing_mode(None)
File "Python311\Lib\site-packages\pyreadline\modes\emacs.py", line 633, in init_editing_mode
self._bind_key('space', self.self_insert)
File "Python311\Lib\site-packages\pyreadline\modes\basemode.py", line 162, in _bind_key
if not callable(func):
^^^^^^^^^^^^^^
File "Python311\Lib\site-packages\pyreadline\py3k_compat.py", line 8, in callable
return isinstance(x, collections.Callable)
^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Callable'