Nmap Development mailing list archives
BUG: resume for Host without open ports and failed reverse DNS lookup fails
From: Till Maas <opensource () till name>
Date: Wed, 13 Jan 2010 01:39:13 +0100
Hi,
I noticed that --resume fails if the last scanned host produces a log
line like:
All 1000 scanned ports on 127.0.0.1 are filtered (501) or closed (499)
Then nmap tries to use (501) as an IP-address, which fails. The problem
is, that the resume ip algorithm assumes that the reverse DNS lookup
worked, then the line would look like:
All 1000 scanned ports on localhost (127.0.0.1) are filtered (501) or closed (499)
The buggy code is in nmap.cc:
2081 if (strncmp(q, " scanned ports on", 17) == 0)
2082 found = q;
2083 }
2084 }
2085
2086 if (found) {
2087 found = strchr(found, '(');
2088 if (!found) fatal("Unable to parse supposed log file %s.
Sorry", fname);
2089 found++;
2090 q = strchr(found, ')');
I might come up with a patch some other day, but since I am not an expert in C,
maybe you can.
Regards
Till
Attachment:
_bin
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- BUG: resume for Host without open ports and failed reverse DNS lookup fails Till Maas (Jan 12)
- Re: BUG: resume for Host without open ports and failed reverse DNS lookup fails David Fifield (Feb 26)
