Nikto

3 min read469 words

Nikto

Nikto – Web Server Vulnerability Scanner

Nikto is an open-source web server scanner used to identify vulnerabilities and misconfigurations. It checks for dangerous files, outdated software versions, insecure server settings, and other security issues. Nikto can test over 6700 potentially harmful files and programs.

Link -> https://cirt.net/Nikto2

Installation / Check

Check if Nikto is installed:

which nikto

Install Nikto:

sudo apt install nikto

Basic Syntax

nikto -h <target>

Common Commands

Basic scan (web server vulnerabilities):

nikto -h http://192.168.1.1

Scan on a custom port:

nikto -h http://192.168.1.1 -p 8080

Scan HTTPS server:

nikto -h http://192.168.1.1 -ssl

Save output as HTML report:

nikto -h http://192.168.1.1 -o report.html -Format htm

Scan for interesting files:

nikto -h http://192.168.1.1 -Tuning 1

Scan for server misconfigurations:

nikto -h http://192.168.1.1 -Tuning 2

Scan for information disclosure:

nikto -h http://192.168.1.1 -Tuning 3

Scan for XSS and script-related issues:

nikto -h http://192.168.1.1 -Tuning 4

Scan for SQL injection points:

nikto -h http://192.168.1.1 -Tuning 9

Run all tests:

nikto -h http://192.168.1.1 -Tuning x

Scan all CGI directories:

nikto -h http://192.168.1.1 -C all

Use IDS evasion techniques:

nikto -h http://192.168.1.1 -evasion 1 nikto -h http://192.168.1.1 -evasion 2 nikto -h http://192.168.1.1 -evasion 4

Deep file testing:

nikto -h http://192.168.1.1 -mutate 1

Guess file names (backup/config files):

nikto -h http://192.168.1.1 -mutate 2

Use proxy (e.g., Burp Suite):

nikto -h http://192.168.1.1 -useproxy http://127.0.0.1:8080

HTTP authentication:

nikto -h http://192.168.1.1 -id admin:password

Set virtual host:

nikto -h http://192.168.1.1 -vhost target.com

Enable all plugins:

nikto -h http://192.168.1.1 -Plugins "@@ALL"

Limit scan time (5 minutes):

nikto -h http://192.168.1.1 -maxtime 300

Add delay between requests:

nikto -h http://192.168.1.1 -pause 3

Scan multiple hosts from file:

nikto -h hosts.txt

Step-by-Step Guide

  1. Identify the target web server (URL or IP address)
  2. Run a basic scan:
nikto -h <target>
  1. Wait for the scan to complete
  2. Review the findings (check vulnerability references)
  3. Research each issue to understand its impact
  4. Save the report:
nikto -h <target> -o report.txt
  1. Prioritize issues based on severity

Understanding the Output

  • + indicates findings
  • Displays server type and detected issues
  • Includes vulnerability reference numbers
  • Provides descriptions of identified problems

Important Notes

  • Nikto scans are noisy and can be easily detected
  • Scan activity is usually logged by the server
  • Results may include false positives, so manual verification is important

⚠️ Legal Warning

Use penetration testing tools only on systems you own or have explicit permission to test. Unauthorized use is illegal.

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy