Skip to content

Commit

Permalink
Document some undocumented script-args.
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Nov 25, 2015
1 parent 46388d2 commit 856b903
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/ajp-brute.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions scripts/hadoop-jobtracker-info.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions scripts/http-feed.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions scripts/http-git.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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
-- <table key="127.0.0.1:80/.git/">
-- <table key="remotes">
Expand Down
1 change: 1 addition & 0 deletions scripts/http-vuln-wnr1000-creds.nse
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Vulnerability discovered by c1ph04.
---
-- @usage
-- 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
-- PORT STATE SERVICE REASON
-- 80/tcp open http syn-ack
Expand Down
1 change: 1 addition & 0 deletions scripts/iscsi-brute.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions scripts/knx-gateway-discover.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions scripts/mongodb-brute.nse
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Performs brute force password auditing against the MongoDB database.
-- @usage
-- nmap -p 27017 <ip> --script mongodb-brute
--
-- @args mongodb-brute.db Database against which to check. Default: admin
--
-- @output
-- PORT STATE SERVICE
-- 27017/tcp open mongodb
Expand Down
3 changes: 3 additions & 0 deletions scripts/mongodb-info.nse
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Attempts to get build info and server status from a MongoDB database.
---
-- @usage
-- nmap -p 27017 --script mongodb-info <host>
--
-- @args mongodb-info.db Database to check. Default: admin
--
-- @output
-- PORT STATE SERVICE REASON
-- 27017/tcp open unknown syn-ack
Expand Down
4 changes: 4 additions & 0 deletions scripts/ms-sql-dump-hashes.nse
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ discovered by other scripts.
-- @usage
-- 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
-- PORT STATE SERVICE
-- 1433/tcp open ms-sql-s
Expand Down

0 comments on commit 856b903

Please sign in to comment.