Nikto

Field Detail
Summary Fast web-server known-issue and misconfiguration scan
Category Web server scanning
Phase web-testing, enumeration
Interface CLI
Platform Linux, Windows, macOS
Licence Open source (GPL)
Docs https://github.com/sullo/nikto/wiki
Related ffuf and Gobuster, Burp Suite, Nmap

Web-server scanner that checks for thousands of known dangerous files, outdated server software, misconfigurations and default content. Fast, zero-finesse, and very noisy — it announces itself in every log. Good for a quick first pass, not a stealthy one.

⚠️ Warning — Loud by design Nikto makes no attempt to be quiet and sends obvious attack-signature requests. In-scope, authorised hosts only; expect it to light up any IDS/WAF.

Basic use

nikto -h 10.10.10.5                         # default: port 80
nikto -h http://10.10.10.5
nikto -h 10.10.10.5 -p 443 -ssl             # HTTPS
nikto -h 10.10.10.5 -p 80,443,8080          # multiple ports
nikto -h https://target.com -p 443          # full URL

Useful options

Option Use
-ssl Force SSL/TLS
-port / -p Port(s)
-Tuning <x> Limit which test classes run (see below)
-useproxy http://127.0.0.1:8080 Route through Burp Suite
-id user:pass HTTP basic auth
-vhost name Set Host header (virtual hosts)
-Display V Verbose (show requests)
-maxtime 300s Cap run time
-Pause 2 Delay between requests (gentler)
-nointeractive Don't prompt
-C all Guess all CGI dirs
-o out.html -Format htm Report to file (txt, htm, csv, xml, json)

Tuning (-Tuning) — pick test categories

1  Interesting files / seen in logs      2  Misconfiguration / default files
3  Information disclosure                 4  Injection (XSS/script/HTML)
5  Remote file retrieval (web root)       6  Denial of service
7  Remote file retrieval (server-wide)    8  Command execution / remote shell
9  SQL injection                          0  File upload
a  Authentication bypass                  b  Software identification
c  Remote source inclusion                x  Reverse (exclude the listed ones)
nikto -h 10.10.10.5 -Tuning 123b            # safe-ish info gathering only
nikto -h 10.10.10.5 -Tuning x6              # everything EXCEPT DoS

💡 Tip — Always exclude category 6 (DoS) unless you have explicit permission — some of those checks can knock a service over.

Reading the output

Each line is a finding with an OSVDB/reference ID and description, e.g. outdated Apache, exposed /admin/, missing X-Frame-Options, dangerous HTTP methods (PUT/DELETE), default install pages.

  • Treat findings as leads, not confirmed vulns — Nikto is signature-based and prone to false positives. Verify each in Burp Suite.
  • The server/version banners and "interesting files" are the most immediately useful output — they tell you where to point ffuf and Gobuster next and what known CVEs to check.

More flags

Flag Purpose
-Display V Verbose — show requests as they go
-evasion 1-8 IDS/WAF evasion (URL encoding, fake params, tab separators…)
-mutate 1-6 Guess harder: subdomains, usernames, filenames, etc.
-Save dir Save raw responses for later review
-followredirects Follow 3xx responses
-timeout N / -maxtime Ns Per-request timeout / overall time cap
-nossl / -ssl Force plain HTTP / force TLS
-list-plugins / -Plugins "a;b" List all checks / run only specific plugins
-Format htm\|csv\|xml\|json -o out Report format + file
-id user:pass HTTP basic auth
nikto -h https://t -ssl -Tuning 123b -evasion 1 -maxtime 300s -o report.html -Format htm

Kill-chain usage

Enumeration

nikto -h https://t -Tuning 123b          # known files / info disclosure

Web testing

nikto -h https://t -o report.html        # full server-misconfig sweep

Where it fits

After Nmap finds a web port: run Nikto for a fast known-issue sweep, use ffuf and Gobuster for broader content discovery, then verify and exploit the interesting findings manually through Burp Suite. Routing Nikto -useproxy through Burp keeps every request in your Burp history for later review.