mirror of
https://github.com/nmap/nmap.git
synced 2026-02-07 14:06:33 +00:00
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.
This commit is contained in:
@@ -230,12 +230,22 @@
|
||||
|
||||
<!ELEMENT cpe (#PCDATA)>
|
||||
|
||||
<!ELEMENT script EMPTY >
|
||||
<!ELEMENT script (table|elem)* >
|
||||
<!ATTLIST script
|
||||
id CDATA #REQUIRED
|
||||
output CDATA #REQUIRED
|
||||
>
|
||||
|
||||
<!ELEMENT table (table|elem)* >
|
||||
<!ATTLIST table
|
||||
key CDATA #IMPLIED
|
||||
>
|
||||
|
||||
<!ELEMENT elem (#PCDATA)>
|
||||
<!ATTLIST elem
|
||||
key CDATA #IMPLIED
|
||||
>
|
||||
|
||||
<!ELEMENT os ( portused* , osmatch*, osfingerprint* ) >
|
||||
|
||||
<!ELEMENT portused EMPTY >
|
||||
|
||||
Reference in New Issue
Block a user