1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00
Commit Graph

71 Commits

Author SHA1 Message Date
david
683382bd68 Revert r12572. I remember why I split the element handlers into a helper
function. It was to make it easy to return out of the handler on error and
still have startElement and endElement maintain the element stack.
2009-03-25 16:33:50 +00:00
david
28705df8ac Use substitution to insert the element name in XML parsing error messages. I
had a copy-paste error where a message under "status" referred to the
"extraports" element.
2009-03-25 16:30:26 +00:00
david
99ebbe3d13 Fix variables names in the code that generates XML for the host-hostname-remove
and host-hostname add elements to refer to hostnames and not addresses.
2009-03-25 01:35:26 +00:00
david
9c3cc6458b Add new Ndiff version and OS differencing to CHANGELOG. 2009-03-18 02:07:40 +00:00
david
7ecfe34fe5 Add OS difference reporting to Ndiff. It looks like
Remove OS "Linux 2.6.18 - 2.6.25".
        Remove OS "Linux 2.6.8 - 2.6.20".
        Remove OS "OpenWrt (Linux 2.6.19 - 2.6.21)".
        Add OS "Archos 605 WiFi video player".
        Add OS "Linux 2.6.27 (Ubuntu)".
        Add OS "Linux 2.6.22".
        Add OS "Linux 2.6.27".
2009-03-18 01:21:25 +00:00
david
ccd55623c7 Record OS information in Ndiff. 2009-03-18 00:09:14 +00:00
david
fd41fcd0f7 Include service detection information in Ndiff output. Change the output format
from

	21/tcp is open, was filtered.
	23/tcp is open, was filtered.
	80/tcp is open, was filtered.
	8701/tcp is filtered, was open.

to

	-21/tcp filtered  
	+21/tcp open ftp Netgear broadband router ftpd 1.0
	-23/tcp filtered  
	+23/tcp open telnet Netgear broadband router admin telnetd
	-80/tcp filtered  
	+80/tcp open http Embedded Allegro RomPager webserver 4.07 UPnP/1.0 (ZyXEL ZyWALL 2)
	-8701/tcp open unknown 
	+8701/tcp filtered
2009-03-16 19:53:34 +00:00
david
63d5040557 Remove the startElementAux and endElementAux methods. Just handle the element
stack management in startElement and endElement.
2009-03-13 21:43:33 +00:00
david
91956287c2 Make each possible diff hunk its own class, rather than having them all be in
the DiffHunk class with a type tag. Now output is handled with polymorphism
rather than dispatching with if/else. It also better shows what members each
hunk type has.
2009-03-13 00:17:48 +00:00
david
df7f565cc5 [Ndiff] Added a workaround for a bug in PyXML. The bug would cause a
crash that looked like "KeyError: 0". Fyodor reported the error.
2009-03-10 15:31:27 +00:00
david
4db82f9351 When ndiff gets a command-line option it doesn't understand, print just the
exception message rather than the whole exception tuple. This changes
./ndiff: ('option --foo not recognized', 'foo')
to
./ndiff: option --foo not recognized
2009-01-23 21:03:13 +00:00
fyodor
0823b8d1d8 slight rewording 2009-01-23 02:14:09 +00:00
david
c4b27a31b4 Don't ignore host state changes when the change is to the state "unknown". This
happens when a host was scanned in the A scan but wasn't scanned in the B scan.
I previously had it ignore such changes using the logic that the diff should be
like scan aggregation: no new information means no state change. But I think
it's more useful to see those changes in which hosts were scanned.

This is analogous to r10263, which did the same thing for port state changes.
2009-01-20 21:02:15 +00:00
david
4b02922b81 Use a more concise definition of render_port_list. 2008-11-25 18:31:03 +00:00
david
c4b60d8b72 Fix a typo in and add an assertion to ndiff. 2008-11-24 05:29:38 +00:00
david
efac5dd813 Add some missing words to a comment in ndifftest.py. 2008-11-21 17:40:36 +00:00
david
3caa760907 Fix a typo in ndiff.dtd. 2008-11-21 17:39:00 +00:00
david
989117eb54 Update a unit test to match my new thinking about port state changes. 2008-09-19 00:42:53 +00:00
david
f2782f3e4e Don't elide port state changes when a state changes to "unknown." I originally
did this with the idea of making diffing like scan aggregation, with known
characteristics carrying forward through unknown. But it can be confusing. I
think when you diff
  nmap scanme.nmap.org
and
  nmap -F scanme.nmap.org
you want to see that the gopher port changes from closed to unknown, because
it's not scanned by fast scan.
2008-09-19 00:41:51 +00:00
david
68e326252e Remove "other" from doubly consolidated port state change lines. When all the
ports had the same state change, "other" doesn't make sense.
2008-09-19 00:33:35 +00:00
david
903e91a48b Move /nmap-exp/david/ndiff to /nmap/ndiff. 2008-09-18 23:31:19 +00:00