skelsec / pypykatz

Mimikatz implementation in pure Python
MIT License
2.81k stars 371 forks source link

Getting error while running the script #86

Closed Vedant-Bhalgama closed 3 years ago

Vedant-Bhalgama commented 3 years ago

Hi! I cloned the tool as mentioned, ran the setup.py, but now, when i execute the pypykatz.py script, It gives me this error.

Traceback (most recent call last): File "C:\Python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "./pypykatz\__main__.py", line 150, in <module> main() File "./pypykatz\__main__.py", line 14, in main from pypykatz.utils.crypto.cmdhelper import CryptoCMDHelper File "./pypykatz\pypykatz.py", line 12, in <module> from pypykatz.commons.common import KatzSystemInfo ModuleNotFoundError: No module named 'pypykatz.commons'; 'pypykatz' is not a package

Papotito123 commented 3 years ago

Hello: I have same error so I use lazagne. I read that sometimes is due to pypypaktz folder multiplicity.Having a pypykatz folder with inside another pypykatz folder could lead to an error.

Vedant-Bhalgama commented 3 years ago

Oh I see! I use LaZagne too, But i am just curious to try this one out! I will look if any solution is available! Thank You!

skelsec commented 3 years ago

I can't reproduce this error. Clean ubuntu with python3.8 and 3.7 works from git master branch, and via pip as well.

skelsec commented 3 years ago

@daniboomberger but why would you want to run that script from the command line? that file doesn't have any command line interface functionality.
All commandline functionality is in the __main__.py so you can use that via python -m pypykatz from the cloned pypykatz folder. Can you please explain what you are trying to do?

skelsec commented 3 years ago

Closing this issue since no other users had this and I can't reproduce