setoolkit启动报错的问题
记录一下setoolkti启动报错的解决的过程。 今天计划测试一下使用kali进行社工类的攻击,在启动setoolkit工具的时候报错。
Process Process-1: Traceback (most recent call last): File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/usr/lib/python3.10/http/client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output self.send(msg) File "/usr/lib/python3.10/http/client.py", line 975, in send self.connect() File "/usr/lib/python3.10/http/client.py", line 1447, in connect super().connect() File "/usr/lib/python3.10/http/client.py", line 941, in connect self.sock = self._create_connection( File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
我感觉像是python版本不兼容。 然后使用apt-get update&&apte-get upgrade命令,更新完成后还是报错。 然后我猜测是kali版本太老,随后安装kali 2022.2最新版,结果还是同样报错。 百度搜了一下没有同类报错案例,然后就用google搜索也没有。这不应该啊,因为我不同的环境测试都有报错,应该普遍才对。 最后一条报错提醒我,会不会是要连接某个网址,被拦截了。
马上设置虚拟机kali桥接模式,设置物理机编辑ssr允许局域网连接。 编辑proxychians配置文件:
vi /etc/proxychains4.conf socks5 172.16.10.65 1080
编辑后使用 proxychains curl cip.cc 验证效果:
proxychains curl cip.cc [proxychains] config file found: /etc/proxychains4.conf [proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4 [proxychains] DLL init: proxychains-ng 4.16 [proxychains] Strict chain ... 172.16.10.65:1080 ... cip.cc:80 ... OK IP : 121.0.97.70 地址 : 韩国 韩国 数据二 : 韩国 数据三 : 韩国首尔首尔 URL : http://www.cip.cc/121.0.97.70
启动set 完美解决。 我不知道连raw.githubusercontent.com:443做哪些工作。 以后慢慢摸索。