mirror of
https://github.com/nmap/nmap.git
synced 2026-01-18 12:19:02 +00:00
Another change to this from r18458 that adds a note to check if you need
to escape quotes differently based on which shell you use.
This commit is contained in:
@@ -757,9 +757,11 @@ Nmap script database, but should be used cautiously since Nmap may contain explo
|
||||
<command>nmap -sC --script-args 'user=foo,pass=",{}=bar",whois={whodb=nofollow+ripe},userdb=C:\Some\Path\To\File'</command>
|
||||
</literallayout>
|
||||
</informalexample>
|
||||
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:
|
||||
Notice that the script arguments are surrounded in single quotes. For the
|
||||
Bash shell, this prevents the shell from interpreting the double quotes
|
||||
and doing automatic string concatenation. Naturally, different shells may
|
||||
require you to escape quotes or to use different quotes. See your
|
||||
relevant manual. The command results in this Lua table:
|
||||
<programlisting>
|
||||
{user="foo",pass=",{}=bar",whois={whodb="nofollow+ripe"},userdb="C:\\Some\\Path\\To\\File"}
|
||||
</programlisting>
|
||||
|
||||
Reference in New Issue
Block a user