n0fate / chainbreaker

Mac OS X Keychain Forensic Tool
GNU General Public License v2.0
816 stars 157 forks source link

ImportError: No module named Crypto.Util #14

Closed badrogh closed 4 years ago

badrogh commented 4 years ago

Hello there, I have an issue attempting to open the login.keychain-db

mbp:chainbreaker admin$ python2 chainbreaker.py -f login.keychain-db -p ******** Traceback (most recent call last): File "chainbreaker.py", line 35, in <module> from validator import Validator File "/Users/admin/chainbreaker/validator.py", line 2, in <module> from Crypto.Util import asn1 ImportError: No module named Crypto.Util mbp:chainbreaker admin$

Yes I know the keychain database is to be grabbed from User's library, I just made a local copy of it. For what it's worth, I am running MacOS 10.15.3 (Catalina)

Any idea how to debug this? Thanks

Edit: made the output cleaner

alatas commented 4 years ago

I had the same issue. It seems the pip command installs the pycrypto to python 3 not 2. I reinstalled pip on python2, then pycrypto.

https://github.com/Homebrew/legacy-homebrew/issues/50607

badrogh commented 4 years ago

Teşekkür Sukru. Nicely spotted.