ly4k / Certipy

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

Got error: module 'enum' has no attribute '_decompose' #154

Closed probablypablito closed 1 year ago

probablypablito commented 1 year ago

This happened during an active HTB machine, so some info will be redacted.

The command ran was: proxychains -q certipy find -vulnerable -target 127.0.0.1 -u 'user' -p 'P@ssw0rd' -debug

At first I thought this might've been due to my use of proxychains, but after compiling to Windows using pyinstaller and running it directly on the DC I got the same result.

Here is the full output, ran on Kali Linux via the aforementioned command: Pastebin

EDIT: This seems to not occur with Python 3.10. Maybe the patch in https://github.com/ly4k/Certipy/pull/129 didn't work?

Sad-theFaceless commented 1 year ago

I confirm the issue is back again with python 3.11

ly4k commented 1 year ago

I'm looking into this. It appears the problem isn't the _decompose call in the first place. It's because the new patch fails - perhaps due to a NoneType - which makes it fall back to the old implementation. I'll see what I can do :)

jordanpkimball commented 1 year ago

Replicated issue on 3.11 and verified that Python3.10 works as a temporary workaround for anyone who needs to get it working before Ly4k can get the patch out. Thanks @probablypablito for the edit on that for the workaround.

secure-77 commented 1 year ago

If some else is running into this issue and don`t want to install python 3.10, I created a quick Docker Image to run it with python 3.10: https://github.com/secure-77/Certipy-Docker