Skip to content

Commit

Permalink
Correct reference to snmpcommunity script-arg. Fixes nmap#861
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Apr 21, 2017
1 parent 87991d5 commit c8d5cf8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/scripting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <literal>smbuser</literal> and
<literal>snmpcommunity</literal>.
<literal>creds.snmp</literal>.
</para>
<para>
The online NSE Documentation Portal at <ulink
url="https://nmap.org/nsedoc/"/> lists the arguments that each script
accepts.
accepts, including any library arguments that may influence the script.
</para>
</sect2>

Expand Down Expand Up @@ -1109,7 +1109,7 @@ local server_name = stdnse.get_script_args("xmpp-info.server_name")
<varlistentry>
<term>
<indexterm><primary><option>--script-args</option></primary><secondary>example of</secondary></indexterm>
<command>nmap --script snmp-sysdescr --script-args snmpcommunity=admin example.com</command></term>
<command>nmap --script snmp-sysdescr --script-args creds.snmp=admin example.com</command></term>
<listitem>
<para>Run an individual script that takes a script
argument.</para>
Expand Down
2 changes: 1 addition & 1 deletion scripts/snmp-hh3c-logins.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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=<community> <target>
-- nmap -sU -p 161 --script snmp-hh3c-logins --script-args creds.snmp=<community> <target>
--
-- @output
-- | snmp-hh3c-logins:
Expand Down
2 changes: 1 addition & 1 deletion scripts/snmp-ios-config.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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=<community> <target>
-- nmap -sU -p 161 --script snmp-ios-config --script-args creds.snmp=<community> <target>
--
-- @output
-- | snmp-ios-config:
Expand Down

0 comments on commit c8d5cf8

Please sign in to comment.