Vulnerability Analysis
Learn how to use Nikto, an open-source web server scanner written in Perl and pre-installed on Kali Linux, to audit servers you own or have written permission to test. Its 6700+ checks for potentially dangerous files and programs, plus tests for outdated software and misconfigurations, highlight issues that need verification.
sudo apt install nikto
nikto -h <target_url_or_ip>
To learn how to use Nikto, confirm Kali Linux's pre-installed copy with nikto -Version, or install it if missing with sudo apt update && sudo apt install nikto. To scan a website you own or have written permission to test, run nikto -h http://example.com after replacing the example URL with your authorized target. Read the findings as leads to verify, not proof of a vulnerability. Narrow checks to misconfigurations and default files with nikto -h http://example.com -Tuning 2, then export a new scan's results with nikto -h http://example.com -Tuning 2 -o report.html -Format htm.
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.
| Command | Purpose |
|---|---|
nikto -h <url> | Run the standard web-server test set. |
nikto -h <url> -ssl | Force SSL/TLS mode. |
nikto -h <url> -port 8080 | Test a non-default port. |
nikto -h <url> -Tuning 2 | Restrict testing to misconfiguration and default-file checks. |
nikto -h <url> -Tuning 3 | Restrict testing to information-disclosure checks. |
nikto -h <url> -Pause 1 | Pause one second between tests to reduce load. |
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 rootsnikto -h http://192.168.1.1 -mutate 2Guess passwords - File name guessingnikto -h http://192.168.1.1 -useproxy http://127.0.0.1:8080Through proxy - Route via Burpnikto -h http://192.168.1.1 -id admin:passwordHTTP auth - Basic authenticationnikto -h http://192.168.1.1 -vhost target.comVirtual host - Set Host headernikto -h http://192.168.1.1 -Plugins "@@ALL"All plugins - Enable everythingnikto -h http://192.168.1.1 -maxtime 300Time limit - 5 minute maxnikto -h http://192.168.1.1 -pause 3Delay requests - Avoid rate limitsnikto -h hosts.txtMultiple hosts - Scan from filenikto -h http://192.168.1.100 -o scan.xml -Format xmlXML output for tool integrationnikto -h http://192.168.1.100 -Tuning 5678Tuning for specific vulnerability typesScan 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.
Vulnerability Analysis
Nuclei is used to send requests across targets based on templates, allowing zero false positives and providing rapid scanning over large infrastructure footprints.
Information Gathering
Learn how to use WhatWeb, the website fingerprinting tool that answers 'What is that website?' by detecting content management systems (CMS), blogging platforms, analytics packages, JavaScript libraries, web servers, embedded devices, and over 1800 other web technologies using its plugin architecture.
Web Application
DIRB is a web content scanner that finds hidden directories, backup files, and other sensitive content on web servers by launching dictionary-based attacks against a target URL. This beginner tutorial shows how to use DIRB in Kali Linux: install it, run your first scan, read the output, switch wordlists, and hand verified findings to the next tool.
Web Application
Learn how to use Gobuster, the fast Go-based directory and subdomain brute-forcer, with install steps, your first dir scan, wordlist picks, and result filtering — a beginner tutorial for Kali Linux.
Web Application
SQLMap is an open-source penetration testing tool that automates SQL injection detection and exploitation. It supports six SQL injection techniques (boolean-based blind, time-based blind, error-based, UNION query-based, stacked queries, and out-of-band) and over 30 database backends including MySQL, Oracle, PostgreSQL, Microsoft SQL Server, and many more.
Vulnerability Analysis
Learn how to use WPScan, the black-box WordPress vulnerability scanner: install it in Kali Linux, add a free API token, and scan a WordPress site to enumerate plugins, themes and users and match them against known vulnerabilities.
Nikto commands cheat sheet: install Nikto, run your first web server scan, read the results, tune scans and save reports — with a worked example.
Web Security · IntermediateWhat is SQL injection? See real SQL injection examples, a worked DVWA lab test, and how to prevent SQL injection with parameterized queries.
Web Security · IntermediateA comprehensive guide to web application security covering the OWASP Top 10 vulnerabilities, defense in depth strategies, and secure development lifecycle practices.
OSINT · IntermediateLearn to use Amass for comprehensive attack surface mapping including DNS enumeration, subdomain discovery, integration with APIs, and visualizations.
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.