1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 09:59:04 +00:00

Fix error in documentation.

This commit is contained in:
batrick
2010-06-29 17:20:21 +00:00
parent 29e95309ad
commit c43576e5f2

View File

@@ -754,10 +754,12 @@ Nmap script database, but should be used cautiously since Nmap may contain explo
<informalexample>
<indexterm><primary><option>--script-args</option></primary><secondary>example of</secondary></indexterm>
<literallayout>
<command>nmap -sC --script-args user=foo,pass=',{}=bar',whois={whodb=nofollow+ripe},userdb=C:\Some\Path\To\File</command>
<command>nmap -sC --script-args 'user=foo,pass=",{}=bar",whois={whodb=nofollow+ripe},userdb=C:\Some\Path\To\File'</command>
</literallayout>
</informalexample>
That command results in this Lua table:
Notice that the script arguments are surrounded in single quotes. This
prevents the shell from interpreting the double quotes and doing
automatic string concatenation. The command results in this Lua table:
<programlisting>
{user="foo",pass=",{}=bar",whois={whodb="nofollow+ripe"},userdb="C:\\Some\\Path\\To\\File"}
</programlisting>