diff --git a/docs/scripting.xml b/docs/scripting.xml index 3b4e5d549..873115984 100644 --- a/docs/scripting.xml +++ b/docs/scripting.xml @@ -1062,12 +1062,12 @@ local server_name = stdnse.get_script_args("xmpp-info.server_name") table named after the script. Arguments used by libraries, which can affect many scripts, usually have names beginning with the name of the library, like smbuser and - snmpcommunity. + creds.snmp. The online NSE Documentation Portal at lists the arguments that each script - accepts. + accepts, including any library arguments that may influence the script. @@ -1109,7 +1109,7 @@ local server_name = stdnse.get_script_args("xmpp-info.server_name") example of - nmap --script snmp-sysdescr --script-args snmpcommunity=admin example.com + nmap --script snmp-sysdescr --script-args creds.snmp=admin example.com Run an individual script that takes a script argument. diff --git a/scripts/snmp-hh3c-logins.nse b/scripts/snmp-hh3c-logins.nse index 37f9882e8..b6522e13c 100644 --- a/scripts/snmp-hh3c-logins.nse +++ b/scripts/snmp-hh3c-logins.nse @@ -22,7 +22,7 @@ http://grutztopia.jingojango.net/2012/10/hph3c-and-huawei-snmp-weak-access-to.ht --- -- @usage --- nmap -sU -p 161 --script snmp-hh3c-logins --script-args snmpcommunity= +-- nmap -sU -p 161 --script snmp-hh3c-logins --script-args creds.snmp= -- -- @output -- | snmp-hh3c-logins: diff --git a/scripts/snmp-ios-config.nse b/scripts/snmp-ios-config.nse index 60db26408..aa3419c53 100644 --- a/scripts/snmp-ios-config.nse +++ b/scripts/snmp-ios-config.nse @@ -12,7 +12,7 @@ Attempts to downloads Cisco router IOS configuration files using SNMP RW (v1) an --- -- @usage --- nmap -sU -p 161 --script snmp-ios-config --script-args snmpcommunity= +-- nmap -sU -p 161 --script snmp-ios-config --script-args creds.snmp= -- -- @output -- | snmp-ios-config: