To configure the nikto tool as a port action, we would need to add the following line to the [PortActions] section in sparta.conf:
nikto=Run nikto, nikto -o [OUTPUT].txt -p [PORT] -h [IP], "http,https"
The following screenshot shows the SPARTA in action against a local subnet. By default, it performs nmap full portscan, nikto, on identified web services port and takes a screenshot if available: