EnnioX / IPWarden

IPWarden(守望者)是一个IP资产风险巡查工具。持续发现系统、Web两个维度的资产和安全风险。所有扫描结果可通过API访问json数据,方便二次开发或数据整理。适合甲方安全人员用于监控管理公网/内网IP资产风险暴露面。
128 stars 19 forks source link

启动runIPWarden.py后就报错停止了 #3

Open ciscochao opened 1 year ago

ciscochao commented 1 year ago

root@172.2.2.2~/data/IPWarden#python3 runIPWarden.py

Starting masscan 1.0.3 (http://bit.ly/14GZzcT) at 2023-07-18 09:10:32 GMT -- forced options: -sS -Pn -n --randomize-hosts -v --send-eth Initiating SYN Stealth Scan Scanning 1 hosts [65535 ports/host] Traceback (most recent call last): File "runIPWarden.py", line 29, in port_scan.main() # IP、端口、协议扫描 File "/root/data/IPWarden/scan/port_scan.py", line 95, in main common.result_to_mysql(read_masscan_result(), 'iplist') File "/root/data/IPWarden/scan/port_scan.py", line 28, in read_masscan_result xml_obj = xmltodict.parse(f.read()) File "/usr/local/lib/python3.6/site-packages/xmltodict.py", line 378, in parse parser.Parse(xml_input, True) xml.parsers.expat.ExpatError: no element found: line 1, column 0

ciscochao commented 1 year ago

root@172.2.2.2~/data/IPWarden#python3 runIPWarden.py

Starting masscan 1.0.3 (http://bit.ly/14GZzcT) at 2023-07-18 09:34:28 GMT -- forced options: -sS -Pn -n --randomize-hosts -v --send-eth Initiating SYN Stealth Scan Scanning 1 hosts [65535 ports/host] Traceback (most recent call last): File "/usr/local/lib64/python3.6/site-packages/pandas/core/indexes/base.py", line 2898, in get_loc return self._engine.get_loc(casted_key) File "pandas/_libs/index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 1675, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 1683, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'url'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "runIPWarden.py", line 40, in nuclei.main() # nuclei漏洞扫描,基于web_scan File "/root/data/IPWarden/nuclei.py", line 56, in main make_urltxt() File "/root/data/IPWarden/nuclei.py", line 29, in make_urltxt ip_list = portsdata['url'].unique() File "/usr/local/lib64/python3.6/site-packages/pandas/core/frame.py", line 2906, in getitem indexer = self.columns.get_loc(key) File "/usr/local/lib64/python3.6/site-packages/pandas/core/indexes/base.py", line 2900, in get_loc raise KeyError(key) from err KeyError: 'url'

luyii-code-1 commented 2 months ago

pip拉库先

luyii-code-1 commented 2 months ago

pip install -r IPWarden\requirements.txt