Home page logo

nmap-dev logo Nmap Development mailing list archives

[Ndiff] RFC: Add nmaprun element diff to niff xml output
From: Daniel Miller <bonsaiviking () gmail com>
Date: Sat, 5 Feb 2011 19:48:21 -0600


I've attached a patch for ndiff that does 3 things:

1. Adds a <scan> element to the XML output to show differences between
the <nmaprun> elements of the diffed scans. Ndiff already outputs
similar info in text mode. This information does not affect the diff
cost of 2 scans, so a diff will still not be output if the scan
results did not change. Example:
<nmapdiff version="1">
      <scan args="nmap -vv -A -sS -sU -oA lan-full-%y%m%d --script not
*brute* and not qscan" scanner="nmap"
start="1273248523" startstr="Fri May 07 16:08:43 2010"
      <scan args="nmap -v -A -oA lan-full-%y%m%d --open" scanner="nmap" start="1296469222" startstr="Mon Jan 31
10:20:22 2011" version="5.51SVN"/>

2. Changed the text-mode output of Ndiff to more closely match the
first line of Nmap output. Example:
Original output:
-Nmap 5.51SVN at 2011-01-31 10:20
+Nmap 5.30BETA1 at 2010-05-07 16:08

New output:
-Nmap 5.51SVN scan initiated Mon Jan 31 10:20:22 2011 as: nmap -v -A
-oA lan-full-%y%m%d --open
+Nmap 5.30BETA1 scan initiated Fri May 07 16:08:43 2010 as: nmap -vv
-A -sS -sU -oA lan-full-%y%m%d --script not *brute* and not qscan

3. Changes the Ndiff DTD to reflect changes in XML output.
Essentially, the new <scan> element is now a diffable element, allowed
to be a child of an <a> or <b> element.


Attachment: ndiff.patch

Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

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