1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 03:49:01 +00:00

Update the script args example to use whois instead of anonFTP; anonFTP doesn't

take any args, let alone a table.
This commit is contained in:
david
2008-11-06 03:12:58 +00:00
parent 6fbc8868a9
commit 02ff37d490

View File

@@ -505,14 +505,14 @@ Nmap script database.</para>
<indexterm><primary><option>-sC</option></primary><secondary>example of</secondary></indexterm>
<indexterm><primary><option>--script-args</option></primary><secondary>example of</secondary></indexterm>
<userinput>
$ nmap -sC --script-args user=foo,pass=bar,anonFTP={pass=ftp@foobar.com}
$ nmap -sC --script-args user=foo,pass=bar,whois={whodb=nofollow+ripe}
</userinput>
</para>
<para>
which would result in the Lua table:
</para>
<programlisting>
{user="foo",pass="bar",anonFTP={pass="nobody@foobar.com"}}
{user="foo",pass="bar",whois={whodb="nofollow+ripe"}}
</programlisting>
<para>You could therefore access the username (<literal>"foo"</literal>)