We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c2246b + 1857cac commit 46b3463Copy full SHA for 46b3463
nmap3/nmapparser.py
@@ -173,11 +173,11 @@ def parse_ports(self, xml_hosts):
173
174
if(port.find('service') is not None):
175
open_ports["service"]=port.find("service").attrib
176
-
+ cpe_list = []
177
for cp in port.find("service").findall("cpe"):
178
- cpe_list = []
+
179
cpe_list.append({"cpe": cp.text})
180
- open_ports["cpe"] = cpe_list
+ open_ports["cpe"] = cpe_list
181
182
# Script
183
open_ports["scripts"]=self.parse_scripts(port.findall('script')) if port.findall('script') is not None else []
0 commit comments