Vulnerability Analysis · Module 05

Nikto

Scan web servers for known vulnerabilities and misconfigurations.

ModuleModule 05PhaseVulnerability AnalysisTypeDefensive / AnalysisPlatformKali Linux

Definition

Nikto is an open-source command-line web server scanner.

Primary purpose

Identify known vulnerable files/CGIs, outdated server software, misconfigurations, and other common web server issues.

Cybersecurity use

Web server reconnaissance and vulnerability scanning during authorized web and infrastructure assessments.

Key features

Signature-based checks

Tests against a large database of known vulnerable files and banners.

SSL/TLS support

Can scan HTTPS services and report certificate/protocol issues.

Plugin tuning

Narrow the scan to specific vulnerability categories.

Multiple output formats

Text, HTML, CSV and XML reports.

Proxy support

Can route scans through an HTTP proxy.

Important commands

nikto -h <target>

Default scan against the target host.

nikto -h <target> -p <port>

Scan a specific port.

nikto -h <target> -ssl

Force an SSL/TLS scan.

nikto -h <target> -o report.html -Format htm

Save output as an HTML report.

nikto -h <target> -Tuning x

Restrict the scan to specific test categories.

Practical examples

01Basic scan
command
nikto -h http://192.168.1.50

Purpose Runs a standard scan for common web server issues.

02HTTPS scan with report
command
nikto -h https://192.168.1.50 -ssl -o report.html -Format htm

Purpose Scans an HTTPS service and saves an HTML report.

03Tuned scan
command
nikto -h 192.168.1.50 -Tuning 1,2,3

Purpose Limits testing to selected categories to reduce time and noise.

Important points

  • Noisy by design: Nikto is not stealthy — it is easily logged and detected by WAFs/IDS.
  • False positives: Signature checks can flag issues that are not exploitable — verify manually.
  • Not an exploitation tool: It identifies potential issues but does not exploit them.
  • Authorization required: Scanning without permission can be disruptive and is often illegal.

Common use cases

Web server reconnaissance

Identify outdated software and default/insecure files.

Authorized web assessments

Early-stage scanning before manual testing.

Configuration audits

Check for missing headers, exposed directories and risky defaults.

Baseline hardening

Validate that known web server issues were fixed.

Learn it in context

This tool is taught in Module 05

Read the full written notes, with diagrams, defense and detection.

Open Module 05