Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Small Bug in SVN revision 28643: Missing newline in gnmap output (diff included)
From: Matthew Morgan <willdeed () gmail com>
Date: Mon, 21 May 2012 01:23:53 -0500

There is a missing newline in gnmap output when there is a host timeout.

Here is example gnmap output showing the missing newline:

Host: 127.0.0.208 (host208)        Status: Up
Host: 127.0.0.208 (host208)        Status: TimeoutHost: 127.0.0.209
(host209) Status: Up
Host: 127.0.0.209 (host209)        Status: TimeoutHost: 127.0.0.211
(host211) Status: Up
Host: 127.0.0.211 (host211)        Status: TimeoutHost: 127.0.0.212
(host212) Status: Up
Host: 127.0.0.212 (host212)        Status: TimeoutHost: 127.0.0.213
(host213) Status: Up
Host: 127.0.0.213 (host213)        Status: TimeoutHost: 127.0.0.214
(host214) Status: Up
Host: 127.0.0.214 (host214)        Status: TimeoutHost: 127.0.0.215
(host215) Status: Up


Expected outcome after adding newline:

Host: 127.0.0.208 (host208)        Status: Up
Host: 127.0.0.208 (host208)        Status: Timeout
Host: 127.0.0.209 (host209) Status: Up
Host: 127.0.0.209 (host209)        Status: Timeout
Host: 127.0.0.211 (host211) Status: Up
Host: 127.0.0.211 (host211)        Status: Timeout
Host: 127.0.0.212 (host212) Status: Up
Host: 127.0.0.212 (host212)        Status: Timeout
Host: 127.0.0.213 (host213) Status: Up
Host: 127.0.0.213 (host213)        Status: Timeout
Host: 127.0.0.214 (host214) Status: Up
Host: 127.0.0.214 (host214)        Status: Timeout
Host: 127.0.0.215 (host215) Status: Up


Here is the diff from svn revision 28643:

[01:09:28] willdeed () blotter27:~/src/nmap-svn/nmap $ diff nmap.cc nmap-new.cc
1991c1991
<         log_write(LOG_MACHINE,"Host: %s (%s)\tStatus: Timeout",
---
        log_write(LOG_MACHINE,"Host: %s (%s)\tStatus: Timeout\n",
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]