Ultimate Nikto Cheat Sheet
Ultimate Nikto Cheat Sheet
A reference guide for the classic web server scanner.
1. Basic Scanning
The standard syntax for scanning a target web server.
Simple Scan
Scans port 80 by default.
Scan Multiple Hosts
To scan a list of IP addresses from a file.
2. Ports & Protocols
Specific Ports
Scan a non-standard port.
Multiple Ports
Force SSL (HTTPS)
If Nikto doesn't detect SSL automatically.
3. Tuning (Scan Types)
Use the -Tuning (or -T) flag to specify which tests to run. This speeds up scans and reduces noise.
| Code | Scan Type |
|---|---|
1 | Interesting File (Logs, config files) |
2 | Misconfiguration |
3 | Information Disclosure |
4 | Injection (XSS/Script) |
8 | Command Execution |
9 | SQL Injection |
x | Reverse Tuning (Run everything EXCEPT these) |
nikto -h target.com -T x 6
4. Evasion & IDS Bypass
Techniques to obscure the scan from Intrusion Detection Systems (IDS) using -evasion.
Evasion Codes
1: Random URI Encoding2: Directory Self-Reference (/./)3: Premature URL ending6: Send random UTF-8 encoded char8: Send fake Content-Length header
User Agent
Change your signature to look like a browser.
5. Output & Reporting
Saving your results in a readable format.
Save to File
Nikto guesses the format based on the file extension.
Force Format
6. Configuration & Auth
Authentication
If the site is protected by Basic HTTP Auth.
Using a Proxy
Disable Interactive Mode
Use -nointeractive to prevent Nikto from asking questions during the scan (good for scripts).
Update Databases
Update plugins and databases (may require root).

Post a Comment