CBHue/ipListER

Incorrectly reading nmap files with "open|filtered" states as being open

Closed this issue · 0 comments

Ecksy commented

Hi, I use your script quite often on assessments where I need to add a list of open port numbers/services in my reports. This script makes it easy to pull out that info. I don't know if it is intentional or not (if it is please disregard) but Nmaps with a port state of "open|filtered" are processed as "open" and are exported to the output file, this happens quite a lot with UDP nmap scans. I corrected this by adding some regex characters to the search. Particularly I changed line 77 to:

match = re.search('^open$',state)

Again, great script, I use it often.