1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Document some undocumented script-args.

This commit is contained in:
dmiller
2015-11-25 03:01:29 +00:00
parent 46388d28db
commit 856b90337a
10 changed files with 18 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ back-end Java application server containers.
-- | Statistics -- | Statistics
-- |_ Performed 1946 guesses in 23 seconds, average tps: 82 -- |_ Performed 1946 guesses in 23 seconds, average tps: 82
-- --
-- @args ajp-brute.path URL path to request. Default: /
author = "Patrik Karlsson" author = "Patrik Karlsson"
license = "Same as Nmap--See https://nmap.org/book/man-legal.html" license = "Same as Nmap--See https://nmap.org/book/man-legal.html"

View File

@@ -24,6 +24,8 @@ Information gathered:
-- @usage -- @usage
-- nmap --script hadoop-jobtracker-info [--script-args=hadoop-jobtracker-info.userinfo] -p 50030 host -- 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 -- @output
-- 50030/tcp open hadoop-jobtracker -- 50030/tcp open hadoop-jobtracker
-- | hadoop-jobtracker-info: -- | hadoop-jobtracker-info:

View File

@@ -76,6 +76,7 @@ end
action = function(host, port) action = function(host, port)
--TODO: prefix this with SCRIPT_NAME and document it.
local maxpagecount = stdnse.get_script_args("maxpagecount") or 40 local maxpagecount = stdnse.get_script_args("maxpagecount") or 40
local crawler = httpspider.Crawler:new(host, port, '/', { scriptname = SCRIPT_NAME, local crawler = httpspider.Crawler:new(host, port, '/', { scriptname = SCRIPT_NAME,

View File

@@ -26,6 +26,8 @@ message, and repository description.
-- | 127.0.0.1:80/damagedrepository/.git/ -- | 127.0.0.1:80/damagedrepository/.git/
-- |_ Potential Git repository found (found 2/6 expected files) -- |_ Potential Git repository found (found 2/6 expected files)
-- --
-- @args http-git.root URL path to search for a .git directory. Default: /
--
-- @xmloutput -- @xmloutput
-- <table key="127.0.0.1:80/.git/"> -- <table key="127.0.0.1:80/.git/">
-- <table key="remotes"> -- <table key="remotes">

View File

@@ -15,6 +15,7 @@ Vulnerability discovered by c1ph04.
--- ---
-- @usage -- @usage
-- nmap -sV --script http-vuln-wnr1000-creds <target> -p80 -- nmap -sV --script http-vuln-wnr1000-creds <target> -p80
-- @args http-vuln-wnr1000-creds.uri URI path where the passwordrecovered.cgi script can be found. Default: /
-- @output -- @output
-- PORT STATE SERVICE REASON -- PORT STATE SERVICE REASON
-- 80/tcp open http syn-ack -- 80/tcp open http syn-ack

View File

@@ -9,6 +9,7 @@ Performs brute force password auditing against iSCSI targets.
]] ]]
--- ---
-- @args iscsi-brute.target iSCSI target to brute-force.
-- @output -- @output
-- PORT STATE SERVICE -- PORT STATE SERVICE
-- 3260/tcp open iscsi syn-ack -- 3260/tcp open iscsi syn-ack

View File

@@ -25,9 +25,7 @@ license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
categories = {"discovery", "safe", "broadcast"} categories = {"discovery", "safe", "broadcast"}
--- ---
--@args --@args timeout Max time to wait for a response. (default 3s)
-- timeout Max time to wait for a response. (default 3s)
-- newtargets Add found gateways to target list
-- --
--@usage --@usage
-- nmap --script knx-gateway-discover -e eth0 -- nmap --script knx-gateway-discover -e eth0

View File

@@ -14,6 +14,8 @@ Performs brute force password auditing against the MongoDB database.
-- @usage -- @usage
-- nmap -p 27017 <ip> --script mongodb-brute -- nmap -p 27017 <ip> --script mongodb-brute
-- --
-- @args mongodb-brute.db Database against which to check. Default: admin
--
-- @output -- @output
-- PORT STATE SERVICE -- PORT STATE SERVICE
-- 27017/tcp open mongodb -- 27017/tcp open mongodb

View File

@@ -12,6 +12,9 @@ Attempts to get build info and server status from a MongoDB database.
--- ---
-- @usage -- @usage
-- nmap -p 27017 --script mongodb-info <host> -- nmap -p 27017 --script mongodb-info <host>
--
-- @args mongodb-info.db Database to check. Default: admin
--
-- @output -- @output
-- PORT STATE SERVICE REASON -- PORT STATE SERVICE REASON
-- 27017/tcp open unknown syn-ack -- 27017/tcp open unknown syn-ack

View File

@@ -17,6 +17,10 @@ discovered by other scripts.
-- @usage -- @usage
-- nmap -p 1433 <ip> --script ms-sql-dump-hashes -- nmap -p 1433 <ip> --script ms-sql-dump-hashes
-- --
-- @args ms-sql-dump-hashes.dir Dump hashes to a file in this directory. File
-- name is <ip>_<instance>_ms-sql_hashes.txt.
-- Default: no file is saved.
--
-- @output -- @output
-- PORT STATE SERVICE -- PORT STATE SERVICE
-- 1433/tcp open ms-sql-s -- 1433/tcp open ms-sql-s