How To Install Nikto Web Scanner on Ubuntu

Install Nikto Web Scanner on Ubuntu

In this tutorial, we will show you how to install the Nikto web scanner on Ubuntu. For those of you who didn’t know, Nikto Web Scanner is an open-source software tool that plays a crucial role in the security assessment of web servers. It is designed to detect various types of vulnerabilities, including outdated software versions, dangerous files and programs, and other security risks. The importance of vulnerability assessment in web security cannot be overstated, as it helps organizations identify and mitigate potential threats before they can be exploited by attackers.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Nikto Web Scanner on Ubuntu Linux. You can follow the same instructions for Ubuntu 24.04, 22.04, and any other Debian-based distribution like Linux Mint.


  • A server running one of the following operating systems: Ubuntu 24.04, 22.04, and any other Debian-based distribution like Linux Mint.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Nikto Web Scanner on Ubuntu

Step 1. Keeping your system up-to-date is essential for security and compatibility. Begin by updating the package lists and upgrading the installed packages to their latest versions:

sudo apt update
sudo apt upgrade
sudo apt install wget unzip libnet-ssleay-perl libwhisker2-perl openssl

Step 2. Installing Nikto Web Scanner on Ubuntu system.

You can now easily install Nikto by running the following command below:

sudo apt install nikto

To confirm that Nikto has been installed correctly, run the following command:

nikto -h

If the installation is successful, you will see the help menu, which provides an overview of Nikto’s command-line options.

Step 4. Scan for vulnerabilities using Nikto.

Generally, Nikto requires just a host to scan which can be specified with -h or -host option for example if we need to scan a machine whose IP is we will run Nikto as follows and the scan would look something like this:

nikto -h

If the webserver is running on a different port, you have to specify the port number by using -p or port option:

nikto -h -p 8080

To specify the target by its URL we will use the command:

nikto -h http://

If you need to use a proxy server, the -useproxy option allows you to define the proxy address:

nikto -useproxy http://<proxy-server>:<port> -h <target-website>

Step 5. Updating Nikto’s Plugin and Database.

To ensure effective scanning, regularly update Nikto’s plugin and database with the latest vulnerability definitions:

nikto -update

Congratulations! You have successfully installed Nikto. Thanks for using this tutorial for installing the Nikto web scanner on your Ubuntu Linux system. For additional help or useful information, we recommend you check the official Nikto website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button