Commit Graph

56 Commits

Author SHA1 Message Date
dmiller 2bd5dd3a45 Update DTD to match output after #1351. Fixes #2494. 2022-06-28 17:40:30 +00:00
dmiller dd690b3e0b Bump copyright date and update some links [ci skip] 2022-02-18 17:38:46 +00:00
fyodor 158c2e493c Change Insecure.Com LLC to Nmap Software LLC 2021-11-23 19:01:05 +00:00
dmiller 14c7f87d6f XML output: include host times and a flag if the host timed out 2021-05-07 22:08:44 +00:00
dmiller e7b40571ef Correct the DTD for hosthint element. Fixes #2217 2020-12-30 23:31:35 +00:00
dmiller cd63da6ba0 Update DTD and changelog entry for previous change 2020-12-17 22:12:05 +00:00
dmiller a2d44ab1b4 Add hosthint element to DTD as child of nmaprun 2020-01-30 04:59:39 +00:00
dmiller 6ed754b438 Add "hosthint" element to XML.
This feature allows programs consuming XML output to know when a target
has been found to be "up" before all scan phases are completed. This is
helpful for allocating storage, communicating scan progress, or
estimating total scan duration. Closes #1858.
2020-01-11 07:05:01 +00:00
dmiller fb5c947453 Fix Nmap DTD to account for PCDATA in script element 2015-08-21 16:35:19 +00:00
david 0c3e0fcc4d Structured script output.
Scripts may now return a key–value table, or such a table in addition to
a string. The table will be automatically formatted for normal output
and will appear as a hierarchy of elements in XML output.

Some history and discussion of this development can be found at
https://secwiki.org/w/Nmap/Structured_Script_Output.

This is a merge of r29484:29569 from /nmap-exp/david/xml-output.
2012-08-14 16:36:25 +00:00
dmiller 5b5ca64126 Add reason_ttl attribute for host/status output 2012-07-20 21:44:57 +00:00
david 1599aa6fe8 Make osclass XML elements children of the osmatch element they belong to.
Add the --deprecated-xml-osclass to restore the old output.
2012-05-05 18:02:33 +00:00
david 5067f767b7 Add the new <target> element to XML output.
This element is intended to report information about command-line target
specifications. Now it's used with status="skipped" to indicate that a
specification was ignored.
2012-05-04 15:04:41 +00:00
david 04069e6166 Merge r26341:26417 from /nmap-exp/david/nmap-cpe.
This adds CPE output support.
2011-09-09 23:24:14 +00:00
david d18c149e8c o Relaxed the XML DTD to allow validation of files where the verbosity
level changed during the scan. [Daniel Miller]
2011-09-02 22:21:12 +00:00
david b2eefcfe69 o Made a service confidence of 8 (used when tcpwrapped) and indeed any
number between 0 and 10 be legal in XML output according to the DTD.
  [Daniel Miller]
2011-09-02 21:35:16 +00:00
david 5e3c5d8eca Fix typos in nmap.dtd: (prescript, postscript) not (prescripts,
postscripts).
2011-02-03 04:52:57 +00:00
djalal f0c5e154c3 Merge r18689:r19511 from /nmap-exp/djalal/nse-rules.
o Add two new Script scan phases:
  Script Pre-scanning phase: before any Nmap scan operation, activated by the new "prerule".
  Script Post-scanning phase: after all Nmap scan operations, activated by the new "postrule".
o New environment variables:
  SCRIPT_PATH
  SCRIPT_NAME
  SCRIPT_TYPE: the type of the rule that activated the script.
2010-08-06 16:40:03 +00:00
david 859ef5ecaf Merge r17202:17298 from /nmap-exp/david/nmap-xml. This brings in
structured XML output, automatic closing of XML elements on error, and
inclusion of error messages in XML output.
2010-04-14 01:05:51 +00:00
david 838127d565 Remove the error element from the XML DTD. It was supposed to be a child
of trace, but I don't think it has ever been emitted since traceroute
was added in r4556.
2010-04-07 23:26:09 +00:00
david 719d9c9442 Add the user's specified host name to XML output, if available. It looks
like this:

<hostnames>
<hostname name="openbsd.org" type="user"/>
<hostname name="cvs.openbsd.org" type="PTR"/>
</hostnames>
2009-10-24 01:01:08 +00:00
david 1637c05fe2 Make the times element optional as a child of host. There are cases when
there are no times to record because no packets were sent, as when using
-sL or -sP -PN --traceroute --send-ip against a directly connected host.
2009-09-28 20:21:46 +00:00
david 925d2a1693 Make the port and proto attributes optional on the trace element in
nmap.dtd. With a protocol trace or an ICMP trace, there's no port
number.
2009-09-28 20:19:30 +00:00
daniel 50830f7488 o Added initial SCTP port scanning support to Nmap. SCTP is
a layer 4 protocol used mostly for telephony related applications.
  This brings the following new features:
  o SCTP INIT chunk port scan (-sY): open ports return an INIT-ACK
    chunk, closed ones an ABORT chunk.  This is the SCTP equivalent
    of a TCP SYN stealth scan.
  o SCTP COOKIE-ECHO chunk port scan (-sZ): open ports are silent,
    closed ports return an ABORT chunk.
  o SCTP INIT chunk ping probes (-PY): host discovery using SCTP
    INIT chunk packets.
  o SCTP-specific IP protocol scan (-sO -p sctp).
  o SCTP-specific traceroute support (--traceroute).
  o The ability to use the deprecated Adler32 algorithm as specified
    in RFC 2960 instead of CRC32C from RFC 4960 (--adler32).
  o 42 well-known SCTP ports were added to the nmap-services file.
  Part of the work on SCTP support was kindly sponsored by
  Compass Security AG, Switzerland.  [Daniel Roethlisberger]
2009-06-03 23:15:45 +00:00
david b7cb73363c Remove an impossible value ("detection") for the method attribute of the
service element in nmap.dtd.
2009-03-13 20:47:15 +00:00
kris 20ec1c416e o An "elapsed" attribute has been added to the XML output, representing
the total scan time in seconds (floating point).
2009-01-05 05:57:35 +00:00
david 83eb61061f Break a long line in nmap.dtd; it was overflowing the right margin on a printed
page.
2008-11-10 19:05:12 +00:00
david 45213685a9 Change nmap.dtd to include some elements and attributes used by Zenmap. These
are the profile_name attribute of the nmaprun element, the comment attribute of
the host element, and the output element. All of them are optional so this new
DTD is backwards-compatible.

The output element is a replacement for what was the nmap_output attribute in
Zenmap. It just holds the plain text of interactive output. It can be
interpersed in chunks with the host elements, though Zenmap always writes it in
one big block.
2008-09-19 23:33:50 +00:00
david 0ef70aae15 In nmap.dtd, let the xmloutputversion attribute be any CDATA. See
http://seclists.org/nmap-dev/2008/q3/0346.html.
2008-08-18 17:58:05 +00:00
fyodor 30e26e481e we generally don't update the xmlversion just for a new attribute. Doing so may cause more trouble than its worth, though I'm open to convincing 2008-08-13 01:30:42 +00:00
michael 931285f765 Updated DTD, XML version, and anded scanflags attribute to scaninfo element. 2008-08-13 00:59:22 +00:00
fyodor 0f41f60361 proofreading changes from Eric Krosnes 2008-07-14 21:10:22 +00:00
fyodor f44a5709aa update copyright year 2008-06-15 10:43:10 +00:00
david 8aabab33ab Remove a duplicate parameter entity definition of attr_percent in nmap.dtd. 2008-05-12 15:54:14 +00:00
fyodor e843583ef3 o Nmap now reports scan start and end times for individual hosts
within a larger scan. The information is added to the XML host
  element like so: [host starttime="1198292349" endtime="1198292370"]
  (but of couse with angle brackets rather than square ones).  It is
  also printed in normal output if -d or "-v -v" are
  specified. [Brandon, Kris, Fyodor]
2008-05-09 05:21:44 +00:00
david 7f910924ec Mention the removal of tcpsequence class in the CHANGELOG, and bump the XML output version to 1.02. 2008-04-11 19:33:49 +00:00
david c0490af2fd Remove mentions of the TCP sequence class in XML output. 2008-04-11 18:57:32 +00:00
fyodor 4dc8618965 capitalization changes 2007-09-03 02:55:01 +00:00
fyodor f0e99644a7 merge soc07 r5077:5080 - Adding 'extrainfo' in the taskbegin/taskend XML elements for the SPM additional info 2007-08-11 05:11:08 +00:00
fyodor aac82901d3 merge soc07 r5005:5016 - Adding <times> element for the host's final times (srtt, rttvar, to) 2007-08-11 04:47:38 +00:00
fyodor 2af8e785f8 merge soc07 r4957 - Put <extrareasons> inside <extraports> as this should really simplify XML parsers' jobs because they won't have to keep track of what states and reasons go together 2007-08-11 04:29:50 +00:00
fyodor 58f46706e5 merge soc07 r4751 - UDP traceroute hop distance and port state reason feature 2007-08-11 03:15:24 +00:00
fyodor e882edf484 added Eddie Bell's traceroute patch, with only minor changes 2007-03-13 08:02:19 +00:00
fyodor b361685be8 NSE committed 2006-12-11 00:34:26 +00:00
fyodor 9c0af0a95b memory releasing patch from Marek 2006-07-04 23:04:56 +00:00
fyodor 5a9fea3b39 portability fixes, fixed UDP phantom port bug, fixed --version-intensity crash, changed mass_dns to give warning rather than error if cannot find dns servers 2006-06-10 21:23:27 +00:00
fyodor 0a392843a3 approaching 4.04 2006-05-27 08:57:03 +00:00
fyodor 90d9ceaefa Added Martin Macok ratelimit patch with minor changes 2006-05-15 22:37:31 +00:00
fyodor 0b33f41633 About to do Nmap 4.03 2006-04-22 23:00:09 +00:00
fyodor 55e2f6c8d0 soon upgrading flog to FC5 2006-03-26 06:44:53 +00:00