ChrisRimondi / VulntoES

Vulnerability Data in ES
GNU General Public License v2.0
145 stars 63 forks source link

Error with new 'banner' functionality when parsing nmap scan results #14

Open hotpheex opened 6 years ago

hotpheex commented 6 years ago

image

redxking commented 5 years ago

I am getting the same issue.. Any one know how to fix this?

uhhhhhwat commented 5 years ago

Yep, same issue for me. null@ubuntu:~VulntoES$ python VulntoES.py -i 10_windows_version_scan.xml -e 127.0.0.1 -r nmap -I nmap-vuln-to-es Sending Nmap data to Elasticsearch Traceback (most recent call last): File "VulntoES.py", line 433, in <module> main() File "VulntoES.py", line 424, in main np.toES() File "VulntoES.py", line 216, in toES if p.attrib['banner']: KeyError: 'banner' null@ubuntu:~/VulntoES$

fluidum commented 4 years ago

if p.attrib['banner']:

dict_item['banner'] = p.attrib['banner']

I commented out those two lines and nmap XML push was successful to Elastic.