我尝试在 64 位 Kali Linux 2.0 上启动 drozer,但遇到以下问题:
Traceback (most recent call last):
File "/usr/local/bin/drozer", line 4, in <module>
__import__('pkg_resources').run_script('drozer==2.3.4', 'drozer')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 451, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 464, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pyopenssl==0.13
我环顾网络并做了以下事情:
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
sudo easy_install greenlet
sudo easy_install gevent
easy_install ./drozer-2.3.4-py2.7.egg
sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi
sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi
sudo apt-get install build-essential python-dev
sudo apt-get install libxml2-dev
sudo apt-get install libxslt1-dev
但我得到的都是同样的东西。
答案1
下载 pyOpenSSL 版本 0.13:
wget https://pypi.python.org/packages/8b/20/8f4230b281a2a9d0ee9e24fd89aeded0b25d40c84b3d61100a96438e1626/pyOpenSSL-0.13.tar.gz#md5=767bca18a71178ca353dff9e10941929
解压文件:
tar -xvzf pyOpenSSL-0.13.tar.gz
进入包目录:
cd pyOpenSSL-0.13
更正包中的 X509_REVOKED_dup 常量:
sed -e 's/X509_REVOKED_dup/X509_REVOKED_dupe/g' -i OpenSSL/crypto/crl.c
安装包:
python ./setup.py install
这些步骤应该可以解决这个问题。
X509_REVOKED_dup
->的问题X509_REVOKED_dupe
已得到修复,但由于您需要的正是需要执行上述修复才能编译的pyOpenSSl 0.14
版本。0.13
这是一个编译问题,已在此解决github问题