The following are the arguments which are required in an nmap command in order to execute the script:
- --script <filename>|<category>|<directory>|<expression>: This argument allows the user to specify the script to be executed, where the filename, category, directory, and expression follow in order to help the user select the scripts. In order for the user to execute these scripts, they need to be present in the scripts folder of the Nmap installation directory:

The generic syntax used here is as follows:
nmap --script afp-ls.nse <host>
- --script-args: This allows the user to pass inputs to the nmap command if required. The generic ...