Nikto is a free, open-source web server scanner written in Perl by Chris Sullo. Pre-installed in Kali Linux, it tests web servers against a database of over 6,700 potentially dangerous files and programs, checks for outdated server software, and reports configuration issues that could expose a web server to attack.
Nikto differs from directory brute-forcers like Gobuster. While Gobuster finds hidden paths, Nikto checks what is already visible for known weaknesses — outdated server banners, insecure HTTP headers, SSL misconfigurations, and dangerous scripts left behind after installation.
Think of Nikto like a home safety inspector. The inspector does not break in — they walk around checking for known fire hazards, faulty wiring, and unlocked windows. Nikto does the same for web servers.
Core Nikto usages
Outdated software detection — Identifies the web server version and flags servers running outdated Apache, Nginx, IIS, or Tomcat with publicly known CVEs.
Default and dangerous files
Checks for over 6,700 known dangerous files, including default admin pages, test scripts, and backup files left after deployment.
HTTP header analysis
Reports missing security headers, including X-Frame-Options, Content-Security-Policy, and HTTP Strict Transport Security.
SSL and TLS auditing
Checks for weak ciphers, expired certificates, and protocol downgrade vulnerabilities.
Authentication testing
Identifies HTTP Basic Authentication prompts and default credential pages.
CGI and script scanning
Checks for vulnerable CGI scripts and old PHP files known to enable remote code execution.
Practical Nikto command examples
Basic scan

HTTPS scan with SSL checking

Custom port and HTML output

Authenticated scan and tuning

Essential Nikto flags
| -Format HTML | Example | Purpose |
| -h | -h 192.168.1.50 | Target host — required for every scan |
| -p | -p 8080 | Custom port for non-standard web apps |
| -ssl | -ssl | Force SSL and enable certificate checking |
| -o | -o report.html | Save output to file |
| -Format | -Format html | Output format: txt, html, csv, xml, json |
| -id | -id admin:pass | HTTP Basic Auth credentials |
| -Tuning | -Tuning 23 | Select specific test categories |
| -useproxy | -useproxy | Route through Burp Suite for interception |
Pro tip: Route Nikto through Burp Suite using -useproxy http://127.0.0.1:8080 to record every request in Burp’s site map for manual follow-up investigation.
FAQ
What is the difference between Nikto and Burp Suite?
Nikto is automated — it runs predefined checks from a database against a web server. Burp Suite is a comprehensive manual and semi-automated platform for deep application logic testing. Both are used together — Nikto first for quick surface checks, Burp Suite for in-depth manual investigation.
Does Nikto scan HTTPS targets?
Yes. Add the -ssl flag for HTTPS targets. Nikto then also checks for expired certificates, weak cipher suites, deprecated TLS 1.0 and TLS 1.1, and missing HSTS headers alongside its standard vulnerability checks.
Which certifications cover Nikto?
Nikto is explicitly named in the CEH exam blueprint within the web server hacking module. CompTIA PenTest+ includes it within web reconnaissance objectives. The OSCP lab environment expects practical Nikto proficiency throughout its web application machines.

