Installing and updating Nikto on Linux

Nikto is in the EPEL repository for Red Hat/CentOS 7, while it's in the normal repository for Ubuntu (we're still waiting for it to show up in EPEL 8). Along with the Nikto package itself, you'll also want to install a servers that have been set up with SSL/TLS encryption.

To install on Red Hat/CentOS, use the following command:

sudo yum install nikto perl-Net-SSLeay

To install on Ubuntu, use the following command:

sudo apt install nikto libnet-ssleay-perl

The next thing you'll want to do is update the database of vulnerability signatures. However, at the time of writing, there's a slight bug in the Red Hat/CentOS implementation. For some reason, the docs directory is missing, which means that the update functions won't be able to download the CHANGES.txt file to show you what changed with the new database updates. To fix that on your CentOS virtual machine, use the following command:

sudo mkdir /usr/share/nikto/docs

Keep in mind, though, that this could be fixed by the time you read this.

From here on out, things will work the same on either of your virtual machines. To update the vulnerability database, use the following command:

sudo nikto -update

Nikto itself doesn't require sudo privileges, but updating it does because it requires writing to a directory where normal users can't write.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.75.221