kali安装sslstrip错误处理

安装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'

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值