AabyssZG / SpringBoot-Scan

针对SpringBoot的开源渗透框架,以及Spring相关高危漏洞利用工具
https://blog.zgsec.cn/archives/129.html
MIT License
1.66k stars 145 forks source link

macos 下执行报错 #25

Closed lt-fancy closed 3 months ago

lt-fancy commented 3 months ago

所需依赖已安装: pip3 install -r requirements.txt Requirement already satisfied: termcolor==1.1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 1)) (1.1.0) Requirement already satisfied: tqdm==4.62.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 2)) (4.62.3) Requirement already satisfied: requests==2.28.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 3)) (2.28.1) Requirement already satisfied: urllib3==1.26.4 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 4)) (1.26.4) Requirement already satisfied: asyncio>=3.4.3 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 5)) (3.4.3) Requirement already satisfied: aiohttp>=3.8.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from -r requirements.txt (line 6)) (3.10.3) Requirement already satisfied: charset-normalizer<3,>=2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests==2.28.1->-r requirements.txt (line 3)) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests==2.28.1->-r requirements.txt (line 3)) (3.7) Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from requests==2.28.1->-r requirements.txt (line 3)) (2024.7.4) Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp>=3.8.0->-r requirements.txt (line 6)) (2.3.6) Requirement already satisfied: aiosignal>=1.1.2 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp>=3.8.0->-r requirements.txt (line 6)) (1.3.1) Requirement already satisfied: attrs>=17.3.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp>=3.8.0->-r requirements.txt (line 6)) (24.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp>=3.8.0->-r requirements.txt (line 6)) (1.4.1) Requirement already satisfied: multidict<7.0,>=4.5 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp>=3.8.0->-r requirements.txt (line 6)) (6.0.5) Requirement already satisfied: yarl<2.0,>=1.0 in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages (from aiohttp>=3.8.0->-r requirements.txt (line 6)) (1.9.4)

python版本:3.12.5 macos版本:14.3 (23D56) 执行命令:python3 SpringBoot-Scan.py
报错信息:
Traceback (most recent call last): File "/Users/sawallianc/Documents/github/SpringBoot-Scan/SpringBoot-Scan.py", line 7, in from inc import output, console, run ,proxycheck File "/Users/sawallianc/Documents/github/SpringBoot-Scan/inc/console.py", line 7, in from inc import output,run,vul,springcheck,zoom,fofa,poc,hunter File "/Users/sawallianc/Documents/github/SpringBoot-Scan/inc/run.py", line 9, in import requests, sys, random, json, hashlib File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/init.py", line 43, in import urllib3 File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/init.py", line 11, in from . import exceptions File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/exceptions.py", line 3, in from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead ModuleNotFoundError: No module named 'urllib3.packages.six.moves'

AabyssZG commented 3 months ago

这个并不是本工具代码的BUG,而是高版本 urllib3 的兼容性报错:https://github.com/urllib3/urllib3/issues/1518,你可以尝试这样:

pip uninstall urllib3
pip install urllib3

如果还是不行,请手动降低版本到 1.24.1

AabyssZG commented 3 months ago

看样子已经很久没有回复了,先关闭这个Issues 如果还有问题欢迎继续留言哦~