Add support for prerule and postrule scripts to Ndiff.

This commit is contained in:
david 2011-02-03 04:53:03 +00:00
parent bb07ca0b57
commit 98daa69d41
3 changed files with 92 additions and 7 deletions

View file

@ -71,9 +71,12 @@ unchanged.
version 0, which was rather different. -->
<!ATTLIST nmapdiff version CDATA #IMPLIED>
<!ELEMENT scandiff (hostdiff | host)*>
<!ELEMENT scandiff (prescript | hostdiff | host | postscript | (a, b?) | b)*>
<!ELEMENT prescript (script* | (a, b?) | b)>
<!ELEMENT postscript (script* | (a, b?) | b)>
<!ELEMENT hostdiff (host | (a, b?) | b)>
<!ELEMENT host (status | address | hostnames | ports | os | hostscript | a | b)*>
@ -124,6 +127,6 @@ version 0, which was rather different. -->
<!ELEMENT hostscript (script | a | b)*>
<!ENTITY % diff-elem "(host | hostname | extraports* | port | state | service | script | os | osmatch* | hostscript)">
<!ENTITY % diff-elem "(prescript | postscript | host | hostname | extraports* | port | state | service | script | os | osmatch* | hostscript)">
<!ELEMENT a %diff-elem;>
<!ELEMENT b %diff-elem;>