Nmap Development mailing list archives
Re: nmap 4.0 output error
From: Fyodor <fyodor () insecure org>
Date: Thu, 9 Feb 2006 18:10:12 -0800
On Wed, Feb 08, 2006 at 10:49:56AM -0600, Schneider, Jake wrote:
I recently came across a bug in nmap v 4.0. The bug manifests itself when attempting to write output from a scan with the -sV option set and the ignored port state for the output is defined as PORT_OPENFILTERED. Nmap will give an error stating that the assertion on line 143 of NmapOutputTable.cc in the NmapOutputTable::addItem function failed.
Thanks for the report. I was able to reproduce this, and have
implemented this fix for the next version:
--- service_scan.cc (revision 3050)
+++ service_scan.cc (working copy)
@@ -1658,7 +1658,7 @@
char host[128];
if (svc->port->state == PORT_OPENFILTERED) {
- svc->port->state = PORT_OPEN;
+ svc->target->ports.addPort(svc->portno, svc->proto, NULL, PORT_OPEN);
if (o.verbose || o.debugging > 1) {
svc->target->NameIP(host, sizeof(host));
Cheers,
Fyodor
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Current thread:
- nmap 4.0 output error Schneider, Jake (Feb 08)
- Re: nmap 4.0 output error Fyodor (Feb 09)
