$ sudo apt-get install nikto

nikto -h 192.168.1.2

Nikto can be automatically updated, To update to the latest plugins and databases, simply run Nikto with the -update command:

nikto -update

If updates are available, you will see a list of the files getting downloaded.