NDIFF(1) NDIFF(1) (NAME) ndiff - Nmap (SYNOPSIS) ndiff [] {a.xml} {b.xml} (DESCRIPTION) Ndiff Nmap . XML Nmap . : o ( ) o ( ) o ( -sV) o ( -O) o Ndiff diff . (OPTIONS) -h, --help . -v, --verbose . --text . --xml XML. ndiff.dtd . XML Nmap . . (EXAMPLES) Nmap Ndiff . (-F) . NSE . # nmap -F scanme.nmap.org -oX scanme-1.xml # nmap --script=html-title scanme.nmap.org -oX scanme-2.xml $ ndiff -v scanme-1.xml scanme-2.xml -Nmap 5.35DC1 at 2010-07-16 12:09 +Nmap 5.35DC1 at 2010-07-16 12:13 scanme.nmap.org (64.13.134.52): Host is up. -Not shown: 95 filtered ports +Not shown: 993 filtered ports PORT STATE SERVICE VERSION 22/tcp open ssh 25/tcp closed smtp 53/tcp open domain +70/tcp closed gopher 80/tcp open http +|_ html-title: Go ahead and ScanMe! 113/tcp closed auth +31337/tcp closed Elite - + . -F : . html-title . ( ) ( ) . -v ( --verbose) Ndiff . -v . (OUTPUT) : XML. --text . diff Nmap . . - + . - + . . 1 . photos-cache-snc1.facebook.com (lighttpd 1.5.0). 69.63.179.25 DNS . 69.63.184.145 . 1. Ndiff -Nmap 4.85BETA3 at 2009-03-15 11:00 +Nmap 4.85BETA4 at 2009-03-18 11:00 photos-cache-snc1.facebook.com (69.63.178.41): Host is up. Not shown: 99 filtered ports PORT STATE SERVICE VERSION -80/tcp open http +80/tcp open http lighttpd 1.5.0 -cm.out.snc1.tfbnw.net (69.63.179.25): +mailout-snc1.facebook.com (69.63.179.25): Host is up. Not shown: 100 filtered ports +69.63.184.145: +Host is up. +Not shown: 98 filtered ports +PORT STATE SERVICE VERSION +80/tcp open http Apache httpd 1.3.41.fb1 +443/tcp open ssl/http Apache httpd 1.3.41.fb1 XML --xml . XML Nmap . XML nmapdiff scandiff . hostdiff portdiff . hostdiff portdiff a b (a) (b) . 2 XML 1 . photos-cache-snc1.facebook.com portdiff . 69.63.179.25 a b . 69.63.184.145 b hostdiff a . 2. XML Ndiff
(PERIODIC DIFFS) Nmap Ndiff cron . 3 . 3. Ndiff cron #!/bin/sh TARGETS="targets" OPTIONS="-v -T4 -F -sV" date=`date +%F` cd /root/scans nmap $OPTIONS $TARGETS -oA scan-$date > /dev/null if [ -e scan-prev.xml ]; then ndiff scan-prev.xml scan-$date.xml > diff-$date echo "*** NDIFF RESULTS ***" cat diff-$date echo fi echo "*** NMAP RESULTS ***" cat scan-$date.nmap ln -sf scan-$date.xml scan-prev.xml /root/scan-ndiff.sh crontab root : 0 12 * * * /root/scan-ndiff.sh (EXIT CODE) . o Ndiff . o . o . (BUGS) nmap-dev . (HISTORY) Ndiff Michael Pattrick Google Summer of Code . . Perl C++ Python ( Zenmap) . David Fifield . (James Levine) Ndiff [1]. (AUTHORS) David Fifield Michael Pattrick (WEB SITE) https://nmap.org/ndiff (NOTES) 1. https://seclists.org/nmap-hackers/2000/315 Ndiff 03/27/2026 NDIFF(1)