From 856b90337aaa6b7e16ede3ba4b25712d295f347c Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 25 Nov 2015 03:01:29 +0000 Subject: [PATCH] Document some undocumented script-args. --- scripts/ajp-brute.nse | 1 + scripts/hadoop-jobtracker-info.nse | 2 ++ scripts/http-feed.nse | 1 + scripts/http-git.nse | 2 ++ scripts/http-vuln-wnr1000-creds.nse | 1 + scripts/iscsi-brute.nse | 1 + scripts/knx-gateway-discover.nse | 4 +--- scripts/mongodb-brute.nse | 2 ++ scripts/mongodb-info.nse | 3 +++ scripts/ms-sql-dump-hashes.nse | 4 ++++ 10 files changed, 18 insertions(+), 3 deletions(-) diff --git a/scripts/ajp-brute.nse b/scripts/ajp-brute.nse index 88081065a..94b29fadf 100644 --- a/scripts/ajp-brute.nse +++ b/scripts/ajp-brute.nse @@ -25,6 +25,7 @@ back-end Java application server containers. -- | Statistics -- |_ Performed 1946 guesses in 23 seconds, average tps: 82 -- +-- @args ajp-brute.path URL path to request. Default: / author = "Patrik Karlsson" license = "Same as Nmap--See https://nmap.org/book/man-legal.html" diff --git a/scripts/hadoop-jobtracker-info.nse b/scripts/hadoop-jobtracker-info.nse index 253bb3e9b..19e85c137 100644 --- a/scripts/hadoop-jobtracker-info.nse +++ b/scripts/hadoop-jobtracker-info.nse @@ -24,6 +24,8 @@ Information gathered: -- @usage -- nmap --script hadoop-jobtracker-info [--script-args=hadoop-jobtracker-info.userinfo] -p 50030 host -- +-- @args hadoop-jobtracker-info.userinfo Retrieve user history info. Default: false +-- -- @output -- 50030/tcp open hadoop-jobtracker -- | hadoop-jobtracker-info: diff --git a/scripts/http-feed.nse b/scripts/http-feed.nse index 18194e8a7..57fc18709 100644 --- a/scripts/http-feed.nse +++ b/scripts/http-feed.nse @@ -76,6 +76,7 @@ end action = function(host, port) + --TODO: prefix this with SCRIPT_NAME and document it. local maxpagecount = stdnse.get_script_args("maxpagecount") or 40 local crawler = httpspider.Crawler:new(host, port, '/', { scriptname = SCRIPT_NAME, diff --git a/scripts/http-git.nse b/scripts/http-git.nse index a9b517c2f..26bb22a6e 100644 --- a/scripts/http-git.nse +++ b/scripts/http-git.nse @@ -26,6 +26,8 @@ message, and repository description. -- | 127.0.0.1:80/damagedrepository/.git/ -- |_ Potential Git repository found (found 2/6 expected files) -- +-- @args http-git.root URL path to search for a .git directory. Default: / +-- -- @xmloutput -- --
diff --git a/scripts/http-vuln-wnr1000-creds.nse b/scripts/http-vuln-wnr1000-creds.nse index 2fa9f7717..2bcb298aa 100644 --- a/scripts/http-vuln-wnr1000-creds.nse +++ b/scripts/http-vuln-wnr1000-creds.nse @@ -15,6 +15,7 @@ Vulnerability discovered by c1ph04. --- -- @usage -- nmap -sV --script http-vuln-wnr1000-creds -p80 +-- @args http-vuln-wnr1000-creds.uri URI path where the passwordrecovered.cgi script can be found. Default: / -- @output -- PORT STATE SERVICE REASON -- 80/tcp open http syn-ack diff --git a/scripts/iscsi-brute.nse b/scripts/iscsi-brute.nse index e8c099865..f1c2c9780 100644 --- a/scripts/iscsi-brute.nse +++ b/scripts/iscsi-brute.nse @@ -9,6 +9,7 @@ Performs brute force password auditing against iSCSI targets. ]] --- +-- @args iscsi-brute.target iSCSI target to brute-force. -- @output -- PORT STATE SERVICE -- 3260/tcp open iscsi syn-ack diff --git a/scripts/knx-gateway-discover.nse b/scripts/knx-gateway-discover.nse index 074856684..9cffeb0e0 100644 --- a/scripts/knx-gateway-discover.nse +++ b/scripts/knx-gateway-discover.nse @@ -25,9 +25,7 @@ license = "Same as Nmap--See https://nmap.org/book/man-legal.html" categories = {"discovery", "safe", "broadcast"} --- ---@args --- timeout Max time to wait for a response. (default 3s) --- newtargets Add found gateways to target list +--@args timeout Max time to wait for a response. (default 3s) -- --@usage -- nmap --script knx-gateway-discover -e eth0 diff --git a/scripts/mongodb-brute.nse b/scripts/mongodb-brute.nse index cda6bb891..db8d1837d 100644 --- a/scripts/mongodb-brute.nse +++ b/scripts/mongodb-brute.nse @@ -14,6 +14,8 @@ Performs brute force password auditing against the MongoDB database. -- @usage -- nmap -p 27017 --script mongodb-brute -- +-- @args mongodb-brute.db Database against which to check. Default: admin +-- -- @output -- PORT STATE SERVICE -- 27017/tcp open mongodb diff --git a/scripts/mongodb-info.nse b/scripts/mongodb-info.nse index 5085f2536..3f0d5fe96 100644 --- a/scripts/mongodb-info.nse +++ b/scripts/mongodb-info.nse @@ -12,6 +12,9 @@ Attempts to get build info and server status from a MongoDB database. --- -- @usage -- nmap -p 27017 --script mongodb-info +-- +-- @args mongodb-info.db Database to check. Default: admin +-- -- @output -- PORT STATE SERVICE REASON -- 27017/tcp open unknown syn-ack diff --git a/scripts/ms-sql-dump-hashes.nse b/scripts/ms-sql-dump-hashes.nse index 641d1f982..36edde4af 100644 --- a/scripts/ms-sql-dump-hashes.nse +++ b/scripts/ms-sql-dump-hashes.nse @@ -17,6 +17,10 @@ discovered by other scripts. -- @usage -- nmap -p 1433 --script ms-sql-dump-hashes -- +-- @args ms-sql-dump-hashes.dir Dump hashes to a file in this directory. File +-- name is __ms-sql_hashes.txt. +-- Default: no file is saved. +-- -- @output -- PORT STATE SERVICE -- 1433/tcp open ms-sql-s