Closed pwnfoo closed 4 years ago
@sachinkamath Can you give me the NMap command you ran to generate the XML?
@byt3bl33d3r I ran : nmap -iL infile --top-ports 1000 -oX outfile
Can you try adding the -sV
or the -A
flag to the NMap command?
Also is there at least 1 open port in the nmap results?
@byt3bl33d3r I tried running nmap with both -sV
and -A
and the issue still seems to be there. I tested this locally with a single port open.
Attaching nmap xml file for your reference
I think I have narrowed down on the issue. When there is only a single port available, item["ports"]["port"]
is an OrderedDict object, so for port in ports
doesn't work as intended.
The hack in #15 seems to work for me.
Latest push should have fixed it. Thanks for giving me the Nmap XML, helped a ton. Cheers
The following error is thrown when an nmap XML is given as input :