]> &product; &product; 1 2.5.0 http://www.cirt.net/ Vulnerability Scanner nikto.pl Scan web server for known vulnerabilities nikto.pl options Description Nikto is an Open Source web server scanner which performs comprehensive tests against web servers for multiple items that are generally considered dangerous. It checks for: Server and software misconfigurations Default files and programs Insecure files and programs Outdated servers and programs Dangerous files Other problems Nikto is built on LibWhisker2 (LW2) and can run on any platform which has a Perl environment. It supports SSL, proxies, host authentication, attack encoding and more. It can be updated automatically from the command-line, and supports the optional submission of updated version data back to the maintainers. Options yes|no|auto Whether to ask about submitting updates. Options: yes (ask about each), no (don't ask, don't send), auto (don't ask, just send). header:value Add HTTP headers (can be used multiple times, one per header pair). Check if IPv6 is working (connects to ipv6.google.com or value set in nikto.conf). dirs Scan these CGI directories. Special words "none" or "all" may be used. A literal value for a CGI directory such as "/cgi-test/" may be specified (must include trailing slash). file Use this config file instead of the default nikto.conf. Check database and other key files for syntax errors. options Turn on/off display outputs: 1 (Show redirects), 2 (Show cookies received), 3 (Show all 200/OK responses), 4 (Show URLs which require authentication), D (Debug output), E (Display all HTTP errors), P (Print progress to STDOUT), S (Scrub output of IPs and hostnames), V (Verbose output). technique Encoding technique: 1 (Random URI encoding), 2 (Directory self-reference), 3 (Premature URL ending), 4 (Prepend long random string), 5 (Fake parameter), 6 (TAB as request spacer), 7 (Change the case of the URL), 8 (Use Windows directory separator), A (Use carriage return as request spacer), B (Use binary value 0x0b as request spacer), R (Random User-Agent from database; default is first entry; ignored when -useragent is set; note the suggested-headers check always uses the first entry regardless). Follow 3xx redirects to new location. format Save file format: csv (Comma-separated-value), json (JSON Format), htm (HTML Format), sql (Generic SQL, see docs for schema), sqld (SQL Direct, directly inserts into MySQL/PostgreSQL database), txt (Plain text), xml (XML Format). Multiple formats can be specified as a comma-separated list. If not specified, the format will be taken from the file extension passed to -output. Note: sqld format requires DB_TYPE, DB_HOST, DB_PORT, DB_NAME in nikto.conf and NIKTO_DB_USER, NIKTO_DB_PASS environment variables. Display extended help information. target Host(s) to target. Can be an IP address, hostname or text file of hosts. A single dash (-) maybe used for stdout. Can also parse nmap -oG style output. id:pass[:realm] ID and password to use for host Basic host authentication. Format is "id:password" or "id:password:realm". IPv4 Only. IPv6 Only. file Client certificate key file. List all available plugins, perform no testing. time Maximum testing time per host (e.g., 1h, 60m, 3600s). options Guess additional file names: 1 (Test all files with all root directories), 2 (Guess for password file names), 3 (Enumerate user names via Apache), 4 (Enumerate user names via cgiwrap). options Provide information for mutates. Do not check for updates on startup. Successful version checks are otherwise cached for 6 hours in EXECDIR/.last_update_check; delete that file to force a fresh check. Do not use cookies from responses in requests. Disable interactive features. Do not perform name lookups on IP addresses. Strip trailing slash from URL (e.g., '/admin/' to '/admin'). Do not use SSL to connect to the server. Disable TLS connection reuse (keep-alive is on by default). Useful for servers that misbehave with reused TLS sessions. name=value Over-ride an option in nikto.conf, can be issued multiple times. file Write output to the file specified ('.' for auto-name). The format used will be taken from the file extension. This can be over-ridden by using the -Format option. seconds Seconds (integer or floating point) to delay between each test. platform Platform of target: nix (Unix/Linux), win (Windows), or all (both). list List of plugins to run (default: ALL). ports TCP port(s) to target. To test more than one port on the same host, specify the list of ports. Ports can be specified as a range (i.e., 80-90), or as a comma-delimited list, (i.e., 80,88,90). If not specified, port 80 is used. file Client certificate file. path Prepend root value to all requests, format is /directory. directory Save positive responses to this directory ('.' for auto-name). Only test SSL on the ports specified. Using this option will dramatically speed up requests to HTTPS ports, since otherwise the HTTP request will have to timeout first. seconds Seconds to wait before timing out a request. Default timeout is 10 seconds. options Tuning options will control the test that Nikto will use against a target. By default, if any options are specified, only those tests will be performed. If the "x" option is used, it will reverse the logic and exclude only those tests. Use the reference number or letter to specify the type, multiple may be used: 0 - File Upload 1 - Interesting File / Seen in logs 2 - Misconfiguration / Default File 3 - Information Disclosure 4 - Injection (XSS/Script/HTML) 5 - Remote File Retrieval - Inside Web Root 6 - Denial of Service 7 - Remote File Retrieval - Server Wide 8 - Command Execution / Remote Shell 9 - SQL Injection a - Authentication Bypass b - Software Identification c - Remote Source Inclusion d - WebService e - Administrative Console x - Reverse Tuning Options (i.e., include all except specified) target Target host/URL (alias of -host). type Load only user databases, not the standard databases. Options: all (Disable standard dbs and load only user dbs), tests (Disable only db_tests and load udb_tests). string Forces a specific User-Agent string, overriding the database entirely. proxy Use the HTTP proxy defined in the configuration file, or given as argument in the format http://server:port. Display the Nikto software, plugin and database versions. hostname Specify the Host header to be sent to the target. codes Ignore these HTTP codes as negative responses (always). Format is "302,301". string Ignore this string in response body content as negative response (always). Can be a regular expression. DSL Matchers Nikto's test database supports a mini-DSL for matching responses. The following matchers are supported: BODY: and !BODY: — Match or exclude content in the response body. HEADER: and !HEADER: — Match or exclude content in HTTP headers. COOKIE: and !COOKIE: — Match or exclude content in HTTP cookies. (NEW) CODE: and !CODE: — Match or exclude HTTP status codes. You can combine multiple matchers with && (AND). Example: BODY:login&&!BODY:logout&&HEADER:X-Powered-By&&COOKIE:sessionid This will match if the response body contains "login", does not contain "logout", the headers include "X-Powered-By", and a cookie named "sessionid" is present. Files nikto.conf The Nikto configuration file. This sets Nikto's global options. Several nikto.conf files may exist and are parsed in the below order. As each configuration file is loaded is supersedes any previously set configuration: System wide (e.g. /etc/nikto.conf) Home directory (e.g. $HOME/nikto.conf) Current directory (e.g. ./nikto.conf) ${NIKTO_DIR}/databases/db* Database files that nikto uses to check for vulnerabilities and issues within the web server. ${NIKTO_DIR}/plugins/*.plugin All nikto's plugins exist here. Nikto itself is just a wrapper script to manage CLI and pass through to the plugins. ${NIKTO_DIR}/templates Contains the templates for nikto's output formats. Bugs The current features are not supported: SOCKS Proxies Authors Nikto is written and maintained by Chris Sullo and David Lodge. See the main documentation for other contributors. All code is Copyright CIRT, Inc., except LibWhisker which is Copyright (c) 2009, Jeff Forristal (wiretrip.net). Other portions of code may be (C) as specified. See also Nikto Homepage