天天看点

AttributeError: module ‘lib‘ has no attribute ‘OpenSSL_add_all_algorithms

pip安装crackmapexec后,运行crackmapexec 遇到报错

AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms

直接安装

pip3 install  crackmapexec
           
AttributeError: module ‘lib‘ has no attribute ‘OpenSSL_add_all_algorithms

解决

通过

python3 -m pip install --upgrade openssl

或者

python3 -m pip install openssl>22.1.0

或者

python3.9 -m pip install cryptography==38.0.4

再次执行crackmapexec -h可以正常使用了

通过python虚拟环境安装

apt‐get install ‐y libssl‐dev libffi‐dev python‐dev build‐essential
pip install ‐‐user pipenv
git clone ‐‐recursive https://github.com/byt3bl33d3r/CrackMapExec
cd CrackMapExec && pipenv install
pipenv shell
python setup.py install
           

cme使用

爆破用户

通过密码

cme smb 192.168.1.0/24 -u UserNAme -p 'PASSWORDHERE'

指定域-d

cme