Vulnerability Analysis
Nikto is an open-source web server scanner which performs comprehensive tests against web servers for multiple items, including over 6700 potentially dangerous files/programs, outdated versions of over 1250 servers, and version-specific problems on over 270 servers.
sudo apt install nikto
nikto -h <target_url_or_ip>
Nikto is an open-source web server scanner that performs comprehensive tests against web servers for multiple items, including over 6700 potentially dangerous files/programs, outdated versions of over 1250 servers, and version-specific problems on over 270 servers.
The tool checks for misconfigurations, dangerous files and CGIs, outdated server software, and server-specific vulnerabilities. It supports tuning filters, IDS evasion techniques, and multiple output formats.
Nikto is widely used for initial web server reconnaissance, identifying low-hanging fruit, and checking for common security issues. It is often used alongside Nmap and WhatWeb for comprehensive web assessments.
nikto -h http://192.168.1.1Basic web scan - Perform a standard vulnerability scan against a target web servernikto -h http://192.168.1.1 -sslSSL/TLS scan - Force the use of SSL for HTTPS web testingnikto -h http://192.168.1.1 -Tuning 4Tuning filter - Restrict scan to specific test types (e.g., 4 is for injection flaws)nikto -h http://192.168.1.1 -p 8080Custom port - Non-standard portnikto -h http://192.168.1.1 -o report.html -Format htmHTML report - Save resultsnikto -h http://192.168.1.1 -Tuning 1Interesting files - Find sensitive filesnikto -h http://192.168.1.1 -Tuning 2Misconfig scan - Server misconfigurationsnikto -h http://192.168.1.1 -Tuning 3Info disclosure - Find info leaksnikto -h http://192.168.1.1 -Tuning 9SQL Injection - Find SQLi pointsnikto -h http://192.168.1.1 -Tuning xAll tests - Complete scannikto -h http://192.168.1.1 -C allAll CGI dirs - Check all CGI pathsnikto -h http://192.168.1.1 -evasion 1IDS evasion - Random URI encodingnikto -h http://192.168.1.1 -evasion 2Directory self-reference - Use /./nikto -h http://192.168.1.1 -evasion 4Prepend directory - Random pathnikto -h http://192.168.1.1 -mutate 1Test all files - With all rootsScan web servers for misconfigurations and vulnerabilities.
Identify outdated server software with known CVEs.
Find sensitive files like .git, .env, backup files.
Test CGI scripts for vulnerabilities.
Run 'nikto -h http://example.com' to scan a web server. Nikto is pre-installed on Kali. Use '-h' to specify the target host, '-o output.html' to save results, and '-Tuning 123b' to enable specific tests. Always scan only systems you own or have authorization to test.
Nikto checks for over 6,700 potentially dangerous files/programs, checks for outdated versions of over 125 servers, and looks for version-specific problems on over 270 servers. It also tests for server configuration issues, missing security headers, and common misconfigurations.
Nikto focuses specifically on web server scanning and content discovery. Nmap scans network ports and services. Nessus is a comprehensive vulnerability scanner with authenticated checks. Nikto is best for quick web server audits; combine with Nmap for full network coverage.
On Kali Linux, Nikto is pre-installed. On other systems: 'git clone https://github.com/sullo/nikto.git' then run 'perl nikto.pl -h target'. Install Perl first if not present. Docker: 'docker run -it sullo/nikto -h http://example.com'.
No. Nikto sends over 7,000 requests per scan and is trivially detected by any IDS/IPS or WAF. It generates significant logs and is not designed for stealthy reconnaissance. Use Nikto for thorough authorized audits, not evasive testing.
Use '-o output.html' for HTML reports, '-o output.xml' for XML, or '-o output.csv' for CSV. The '-Format' flag specifies the format. Combine with '-Display V' for verbose output to see each test being performed during the scan.
Nikto output lists web server vulnerabilities, misconfigurations, and dangerous files organized by severity. Results include CVE references, server version information, outdated software, and potentially harmful files/CGIs. The output identifies specific issues with remediation recommendations.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.