From 2cb0cfc936db5e149b6df6164587c7742cff79a3 Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 6 May 2013 21:40:02 +0000 Subject: [PATCH] @xmloutput NSEdoc sections for wdb-version and xmpp-info --- scripts/wdb-version.nse | 6 ++++ scripts/xmpp-info.nse | 62 ++++++++++++++++++++++++++++------------- 2 files changed, 49 insertions(+), 19 deletions(-) diff --git a/scripts/wdb-version.nse b/scripts/wdb-version.nse index e9a2fa305..e06b1eb2f 100644 --- a/scripts/wdb-version.nse +++ b/scripts/wdb-version.nse @@ -30,6 +30,12 @@ http://www.kb.cert.org/vuls/id/362332 -- | VxWorks version: VxWorks5.4.2 -- | Board Support Package: PCD ARM940T REV 1 -- | Boot line: host:vxWorks.z +--@xmloutput +-- VULNERABLE: Wind River Systems VxWorks debug service enabled. See http://www.kb.cert.org/vuls/id/362332 +-- 2.0 +-- 5.4 +-- Alcatel CMM MPC8245/100 +-- lanswitchCmm: author = "Daniel Miller" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" diff --git a/scripts/xmpp-info.nse b/scripts/xmpp-info.nse index f2743e78d..3f38b0d3d 100644 --- a/scripts/xmpp-info.nse +++ b/scripts/xmpp-info.nse @@ -16,25 +16,49 @@ server capabilities. If possible, studies server vendor. -- @output -- PORT STATE SERVICE REASON VERSION -- 5222/tcp open jabber syn-ack ejabberd (Protocol 1.0) --- | xmpp-info: --- | XMPP --- | Lang --- | ru --- | v1.0 --- | features --- | In-Band Registration --- | TLS (before TLS stream) --- | capabilities --- | node --- | http://www.process-one.net/en/ejabberd/ --- | ver --- | rvAR01fKsc40hT0hOLGDuG25y9o= --- | COMPRESSION METHODS (1) --- | zlib --- | AUTH MECHANISMS (2) --- | DIGEST-MD5 --- | PLAIN (in TLS stream) --- |_ Ignores server name +-- | xmpp-info: +-- | Respects server name +-- | info: +-- | xmpp: +-- | lang: en +-- | version: 1.0 +-- | capabilities: +-- | node: http://www.process-one.net/en/ejabberd/ +-- | ver: TQ2JFyRoSa70h2G1bpgjzuXb2sU= +-- | features: +-- | In-Band Registration +-- | auth_mechanisms: +-- | DIGEST-MD5 +-- | SCRAM-SHA-1 +-- | PLAIN +-- | pre_tls: +-- | features: +-- |_ TLS +--@xmloutput +-- Respects server name +-- +--
+-- en +-- 1.0 +--
+-- +-- http://www.process-one.net/en/ejabberd/ +-- TQ2JFyRoSa70h2G1bpgjzuXb2sU= +--
+-- +-- In-Band Registration +--
+-- +-- DIGEST-MD5 +-- SCRAM-SHA-1 +-- PLAIN +--
+-- +-- +--
+-- TLS +--
+-- -- -- @args xmpp-info.server_name If set, overwrites hello name sent to the server. -- It can be necessary if XMPP server's name differs from DNS name.