Syntax

The following are the arguments which are required in an nmap command in order to execute the script:

The generic syntax used here is as follows:

nmap  --script afp-ls.nse <host>
nmap  --script afp-ls.nse --script-args <arguments> <host>
nmap  --script afp-ls.nse --script-args-file <filename/path> <host>
nmap  --script-help <filename>

As the output was huge, we saved it to a file called output.txt in the D drive. Open the output file in a text editor to see the help message:

nmap  --script afp-ls.nse –script-trace <hostname>
nmap  --script-updatedb