Nmap Development mailing list archives

Re: [patch] Fix regression in -oG format


From: David Fifield <david () bamsoftware com>
Date: Wed, 17 Apr 2013 15:45:48 -0700

On Mon, Apr 15, 2013 at 11:08:28AM -0500, Daniel Miller wrote:
List,

airos on IRC reported that gnmap format had changed in 6.25. I
traced it back to the removal of RPCGrind from Nmap core. Here's a
patch to fix, since I haven't got my commit access back:

commit d9a437b5a651b50b2c8a71c361d090f0a946299d
Author: Daniel Miller <daniel () bonsaiviking com>
Date:   Mon Apr 15 11:03:20 2013 -0500

    Restore empty rpc_info field to gnmap port output from r29619

diff --git a/output.cc b/output.cc
index 37a4ccc..57930d2 100644
--- a/output.cc
+++ b/output.cc
@@ -760,7 +760,7 @@ void printportoutput(Target *currenths, PortList
*plist) {
             p++;
           }
         }
-        log_write(LOG_MACHINE, "%d/%s/%s//%s/%s/", current->portno,
+        log_write(LOG_MACHINE, "%d/%s/%s//%s//%s/", current->portno,
                   state, protocol, serviceinfo, grepvers);

         xml_open_start_tag("port");

Thanks Dan, good catch. Committed.

David Fifield
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: