安装sslstrip参考了以下链接:
kali2020安装sslstrip_CHENWEI199908的博客-CSDN博客
安装完成后,在运行sslstrip过程中遇到以下错误
问题1.twisted安装不正确。这里需要使用python2.7 的pip进行安装
ImportError: No module named twisted.web
安装twisted.
给python2.7安装pip.执行以下命令。
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2 get-pip.py
问题2.
ImportError: cannot import name certificate_transparency
执行以下代码
sudo pip install cryptography
问题3.在启动sslstrip之后,警告
# sslstrip -a -k -f
/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl/OpenSSL/crypto.py:12: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
:0: UserWarning: You do not have a working installation of the service_identity module: 'No module named service_identity'. Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.
提示错误,warn: 'No module named service_identity',根据提示安装service_identity。这个错误很容易被忽视,因为在开启sslstrip之后,显示正在运行,导致后面的ssl剥离不能成功。
根据提示地址(service-identity · PyPI)来安装。
下载好后,用命令进行安装。我下载的是 21.1.0 版本。用python2.7的pip进行的安装。
sudo pip install service_identity-21.1.0-py2.py3-none-any.whl
如果上面的方法没能解决问题,很大可能是有些包的版本不一样导致的,这个时候我们可以用下面这行代码来强制更新。
sudo pip install service_identity --force --upgrade
错误4.sslstrip能够运行了,但是在工作的过程中报如下问题。目前还没有解决。网上说降低twisted版本,亲测无效。
exceptions.AttributeError: 'int' object has no attribute 'splitlines'