cisagov / log4j-scanner

log4j-scanner is a project derived from other members of the open-source community by CISA to help organizations identify potentially vulnerable web services affected by the log4j vulnerabilities.
1.28k stars 215 forks source link

Python3.9 User get error "AttributeError: module 'time' has no attribute 'clock'" #11

Closed wkc41511 closed 2 years ago

wkc41511 commented 2 years ago

if u got this "AttributeError: module 'time' has no attribute 'clock'"

Try this

vim /usr/local/lib/python3.9/site-packages/Crypto/Random/_UserFriendlyRNG.py

line 77 : "t = time.clock()" to "t = time.perf_counter()"

wkc41511 commented 2 years ago

if got this "ModuleNotFoundError: No module named 'Crypto'"

Try this : pip3.9 install pycrypto

sabretus commented 2 years ago

This helped me

pip3 uninstall PyCrypto
pip3 install -U PyCryptodome
genericcontributor commented 2 years ago

Thank you for the references.