All     Ethical Hacking     Networking     Programming     OSINT

Nikto in Termux – Installation, Usage & Basic Commands

Nikto is an open-source web server scanner used to find vulnerabilities, outdated software, insecure files, and misconfigurations in web servers. Since Nikto is written in Perl, it works well in Termux when installed from its GitHub repository.

Installation

Update Termux and install required dependencies:

pkg update && pkg upgrade -y && pkg install git perl -y

Clone the Nikto GitHub repository:

git clone https://github.com/sullo/nikto.git

Move into the Nikto directory:

cd nikto/program

Check if Nikto is working:

perl nikto.pl -Version

(Optional) Create a shortcut command:

ln -s $PWD/nikto.pl $PREFIX/bin/nikto

Now you can run Nikto from anywhere:

nikto

Usage Commands

Scan a website using HTTP:

nikto -h http://example.com

Scan a website using HTTPS:

nikto -h https://example.com

Scan a specific IP and port:

nikto -h 192.168.1.10 -p 8080

Save scan results to a file:

nikto -h example.com -o result.txt

Scan with SSL enabled manually:

nikto -h example.com -ssl

Use a custom user agent:

nikto -h example.com -useragent Mozilla/5.0

Scan through Tor (Tor must be running):

nikto -h example.com -useproxy http://127.0.0.1:9050

Show all available options:

nikto -Help