我该怎么做才能解决它? 终端输出是:
abhi@abhi-desktop:~/Desktop/sslstrip-0.1$ python sslstrip.py --listen=3130
Traceback (most recent call last):
File "sslstrip.py", line 254, in
main(sys.argv[1:])
File "sslstrip.py", line 246, in main
server = ThreadingHTTPServer(('', listenPort), StripProxy)
File "/usr/lib/python2.6/SocketServer.py", line 400, in init
self.server_bind()
File "/usr/lib/python2.6/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.6/SocketServer.py", line 411, in server_bind
self.socket.bind(self.server_address)
File "", line 1, in bind
TypeError: an integer is required
abhi@abhi-desktop:~/Desktop/sslstrip-0.1$
这是给出的21kb代码...... Download link
答案 0 :(得分:2)
未指定端口时是否会失败?
我的猜测是,listenPort从解析为字符串的选项出来,需要转换为第77行的sslstrip.py.
答案 1 :(得分:2)
提供的链接是sslstrip-0.5。您正在使用sslstrip-0.1。这些非常不同(sslstrip-0.5使用扭曲)。这个错误在sslstrip-0.2中得到修复。如果你没有扭曲或者不想安装扭曲,我建议你得到sslstrip-0.4。