An Nmap script is basically categorized into three sections, which are discussed here. We will use the script from https://svn.nmap.org/nmap/scripts/smtp-enum-users.nse as an example to define the data in these categories:
- Head: This section holds the descriptive and dependency related data to the script, the below are the various supported components:
- description: This field acts as metadata to the script and describes important information about the script's function in order for the user to make use of it. It attempts to enumerate the users on a SMTP server by issuing the VRFY, EXPN, or RCPT TO commands. The goal of this script is to discover all of the user accounts in the remote system. The script will output the list ...