hellogoldsnakeman / masnmapscan-V1.0

一款用于资产探测的端口扫描工具。整合了masscan和nmap两款扫描器,masscan扫描端口,nmap扫描端口对应服务,二者结合起来实现了又快又好地扫描。
772 stars 152 forks source link

脚本似乎对库版本和编码有要求,不够简单粗暴 #1

Open newIDforLOL opened 5 years ago

newIDforLOL commented 5 years ago

[root@localhost masnmapscan-V1.0]# pip install -r requirements.txt Requirement already satisfied: chardet in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 1)) Requirement already satisfied: requests in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 2)) Requirement already satisfied: urllib3 in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 3)) Requirement already satisfied: python-nmap in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 4)) Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python2.7/site-packages (from requests->-r requirements.txt (line 2)) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/site-packages (from requests->-r requirements.txt (line 2)) You are using pip version 9.0.1, however version 19.1.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

[root@localhost masnmapscan-V1.0]# python masnmapcan-V1.0.py
/usr/local/lib/python2.7/site-packages/requests/init.py:80: RequestsDependencyWarning: urllib3 (1.23) or chardet (2.3.0) doesn't match a supported version! RequestsDependencyWarning)

20190603104608

hellogoldsnakeman commented 5 years ago

我是在mac上测试的,主要里面用到的masscan是linux环境下编译的,所以没在windows上测。里面也没用上urllib3的库,貌似是个多余的

chenbo667 commented 5 years ago

https://github.com/hellogoldsnakeman/masnmapscan-V1.0/blob/3280b710785bf328aec55af500d7970494feb357/masnmapcan-V1.0.py#L44 linux 这行需要修改成 temp = json.loads(line)

fayewong00 commented 3 years ago

image 对python版本有要求,python2,对依赖库没有写版本,有的版本下载不能匹配。麻烦楼主在ubuntu等linux环境,windows下都测试好,在发布,运行不了。