Let's now learn to perform vulnerability scanning with Sparta:
- In order to add a new port action, we close Sparta and use vi once again to edit the Sparta configuration file using the vi /usr/share/sparta/sparta.conf command.
- Navigate down to the [PortActions] section, and we will add a new action. Back in Chapter 6, Vulnerability Scanning, we used Nmap NSE to check for one of the four vulnerabilities exploited by the Stuxnet worm. We will add a port action here that will run this check. We will define our [PortAction] as smb-vuln=Check and for printer spooler impersonation, vuln, nmap -p[PORT] --script=smb-vuln-ms10-061 [IP] -vvvv and netbios-ssn,microsoft-ds:
- Save the configuration file, open Sparta, and reload our ...