CravateRouge / bloodyAD

BloodyAD is an Active Directory Privilege Escalation Framework
MIT License
1.19k stars 114 forks source link

"ModuleNotFoundError: No module named 'bloodyAD.cli_modules'" in BloodyAD 0.1.9 #32

Closed jsdhasfedssad closed 1 year ago

jsdhasfedssad commented 1 year ago

Hi,

I saw your new DNS functionalty and wanted to test that but using BloodyAD 0.1.9 errors for me. I can't even exeute "bloodyAD -h". See below.

I installed BloodyAD as per your instructions. Is it only me or is something broken?

Thanks!

bloodyad1
CravateRouge commented 1 year ago

Thank you for telling me, I totally forgot to set the package structure accordingly. Should be solved with 0.2.0.

jsdhasfedssad commented 1 year ago

Sorry but I get different yet similar error in version 0.2.0.

bloodyad1

CravateRouge commented 1 year ago

How did you install it?

jsdhasfedssad commented 1 year ago

I copied your release tagged 10, unpacked it then installed it as per your instructions here in a virtual environment.

CravateRouge commented 1 year ago

Could you detail the commands you did? Something like tar -xvf and pip install v0.2.0/.? I ask you that because using pip install bloodyad works on a clean environment.

jsdhasfedssad commented 1 year ago

Sure.

I copied your release tagged 10 (zip) then I unpacked it using the GUI of the file manager Thunar (default in Kali). I then did the below (taken from the command history):

bloodyad2
CravateRouge commented 1 year ago

I can't reproduce your bug even doing exactly what you did. Try to just pip install bloodyAD on a clean environment. Should work

CravateRouge commented 1 year ago

You can retry with the new version (v0.2.1), I didn't make packaging changes but who knows! (And don't forget to check you have cli_modules directory under bloodyAD directory)

jsdhasfedssad commented 1 year ago

I don't know what to believe anymore... For what it is worth, if I clone main and install it in a virtual environment using your instructions, running BloodyAD fails from within the virtual environment but not from outside it after deactivating the virtual environment.

bloodyad3

But... if I install release 1.8.0 into a virtual environment and install it using your instructions, running BloodyAD from within the virtual environment works...

bloodyad4

jsdhasfedssad commented 1 year ago

Update. I managed to get main to work from within a virtual environment. One need to execute "pip install six" from within the virtual environment. I can see that that dependency is missing from the file "requirements.txt".

This also explains why main works from outside the virtual environment, Kali probably has "six" installed by default and why 1.8.0 works since that does not need the dependency "six".

CravateRouge commented 1 year ago

I forgot to correctly remove this dependency, should be fixed with d816138 thanks for pointing it out!

jsdhasfedssad commented 1 year ago

Great! I can confirm that this now works.

For anyone running BloodyAD in a virtual environment, you likely need to force execution of BloodyAD in the virtual environment using "python3 bloodyAD.py" instead of "bloodyAD".