Nikto
Table of Contents
Web server scanner. Checks for common misconfigurations, outdated software, default files, and known vulnerabilities. Fast and noisy — not stealthy, but useful for a quick baseline scan at the start of web enumeration. Output quality varies; treat findings as leads to investigate manually rather than confirmed vulnerabilities.
Related: Web Application Testing Methodology Nmap HTTP Security Headers
Core Flags
| Flag | Description |
|---|---|
-h |
Target host or URL |
-p |
Port (default 80) |
-ssl |
Force SSL |
-o |
Output file (format from extension) |
-Format |
Output format: txt, csv, htm, xml |
-Tuning |
Scan tuning — select test categories |
-id |
HTTP basic auth (user:pass) |
-C |
Cookie to include |
-useproxy |
Route through proxy |
-nossl |
Disable SSL |
Common Workflows
# Basic scan nikto -h http://$IP # HTTPS target nikto -h https://$IP -ssl # Custom port nikto -h http://$IP -p 8080 # Save output nikto -h http://$IP -o nikto.txt -Format txt nikto -h http://$IP -o nikto.html -Format htm # Route through Burp for review nikto -h http://$IP -useproxy http://127.0.0.1:8080 # Specific tuning — select test categories nikto -h http://$IP -Tuning 1,2,3 # 1=Interesting files, 2=Misconfiguration, 3=Info disclosure # 4=Injection, 6=Denial of Service, 9=Remote file retrieval
What Nikto Finds
- Default files and directories (
robots.txt,.git/,backup/) - Outdated server software and versions
- Missing security headers
- Dangerous HTTP methods enabled (PUT, DELETE)
- Default credentials on known applications
- Known CVE-linked paths
Tips
- Run Nikto early alongside other enumeration — it is slow but automated; let it run in background while doing manual testing
- Output is noisy — focus on findings marked
(OSVDBor known CVE references first - Nikto is loud and will appear in logs — only use with permission
- Missing headers findings overlap with your manual header check; use as confirmation rather than primary source
- Combine with Nmap:
nmap -p 80 --script=http-nikto $IPfor inline scanning