1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 18:39:03 +00:00

Document script arguments in

pop3-brute.nse: pop3loginmethod, userdb, passdb;
snmp-brute.nse: snmpcommunity, snmplist, userdb, passdb;
snmp-sysdecsr.nse: snmpcommunity;
snmp.lua: snmpcommunity;
unpwdb.lua: userdb, passdb.
This commit is contained in:
david
2009-01-13 00:10:33 +00:00
parent 7b687055db
commit a384e9016f
5 changed files with 24 additions and 3 deletions

View File

@@ -2,6 +2,13 @@ description = [[
Tries to log into a POP3 account by guessing usernames and passwords.
]]
---
-- @args pop3loginmethod The login method to use: <code>"USER"</code>
-- (default), <code>"SASL-PLAIN"</code>, <code>"SASL-LOGIN"</code>,
-- <code>"SASL-CRAM-MD5"</code>, or <code>"APOP"</code>.
-- @args userdb The filename of an alternate username database.
-- @args passdb The filename of an alternate password database.
author = "Philip Pickering <pgpickering@gmail.com>"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"

View File

@@ -3,6 +3,13 @@ Attempts to find an SNMP community string by brute force guessing.
]]
-- 2008-07-03
---
-- @args snmpcommunity The SNMP community string to use. If supplied, this
-- script will not run.
-- @args snmplist The filename of a list of community strings to try.
-- @args userdb The filename of an alternate username database.
-- @args passdb The filename of an alternate password database.
author = "Philip Pickering <pgpickering@gmail.com>"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
@@ -12,7 +19,7 @@ categories = {"intrusive", "auth"}
require "shortport"
require "snmp"
-- runs before SNMPsysdesr.nse
-- runs before snmp-sysdescr.nse
runlevel = 1
portrule = shortport.portnumber(161, "udp", {"open", "open|filtered"})

View File

@@ -3,6 +3,8 @@ Attempts to extract system information from an SNMP version 1 service.
]]
---
-- @args snmpcommunity The community string to use.
--
-- @output
-- | snmp-sysdescr: HP ETHERNET MULTI-ENVIRONMENT,ROM A.25.80,JETDIRECT,JD117,EEPROM V.28.22,CIDATE 08/09/2006
-- |_ System uptime: 28 days, 17:18:59 (248153900 timeticks)
@@ -16,7 +18,7 @@ categories = {"default", "discovery", "safe"}
require "shortport"
require "snmp"
-- runs after SNMPcommunityprobe.nse
-- runs after snmp-brute.nse
runlevel = 2
portrule = shortport.portnumber(161, "udp", {"open", "open|filtered"})