Kali2020.4 安装sslstrip

在新版kali中安装sslstrip

在新版的kali中,内置了python3的pip没有python2的pip,sslstrip是使用python2语言开发的,所是这里我们先安装pip2

1.下载安装pip2

1
2
# wget https://bootstrap.pypa.io/get-pip.py
# python2 get-pip.py

最后一行显示Successfully installed就表示安装成功了。

2.下载安装setuptools

1
2
3
# git clone https://github.com/moxie0/sslstrip.git
# cd sslstrip
# python2 setup.py install

3.安装setuptools包

1
# pip2 install -U setuptools

4.安装依赖模块

以上已经成功安装了sslstrip,这里我们运行sslstrip根据报错提示,再通过pip安装你所缺少的模块。

1
2
3
4
5
$ sslstrip
Traceback (most recent call last):
File "/usr/local/bin/sslstrip", line 27, in <module>
from twisted.web import http
ImportError: No module named twisted.web

这里提示缺少twisted这个模块,但是报错的时候他是提示:No module named twisted.web。这里只需要执行pip install twisted这个就好了。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ sslstrip
Traceback (most recent call last):
File "/usr/local/bin/sslstrip", line 30, in <module>
from sslstrip.StrippingProxy import StrippingProxy
File "/usr/local/lib/python2.7/dist-packages/sslstrip/StrippingProxy.py", line 20, in <module>
from ClientRequest import ClientRequest
File "/usr/local/lib/python2.7/dist-packages/sslstrip/ClientRequest.py", line 25, in <module>
from twisted.internet import ssl
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/ssl.py", line 59, in <module>
from OpenSSL import SSL
File "/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl/OpenSSL/__init__.py", line 8, in <module>
File "/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl/OpenSSL/crypto.py", line 12, in <module>
File "/usr/lib/python2.7/dist-packages/cryptography/x509/__init__.py", line 7, in <module>
from cryptography.x509 import certificate_transparency
ImportError: cannot import name certificate_transparency

第二个需要安装的模块是pyOpenSSL,执行pip install pyOpenSSL安装。

-------------本文结束感谢您的阅读-------------