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 -yClone the Nikto GitHub repository:
git clone https://github.com/sullo/nikto.gitMove into the Nikto directory:
cd nikto/programCheck if Nikto is working:
perl nikto.pl -Version(Optional) Create a shortcut command:
ln -s $PWD/nikto.pl $PREFIX/bin/niktoNow you can run Nikto from anywhere:
niktoUsage Commands
Scan a website using HTTP:
nikto -h http://example.comScan a website using HTTPS:
nikto -h https://example.comScan a specific IP and port:
nikto -h 192.168.1.10 -p 8080Save scan results to a file:
nikto -h example.com -o result.txtScan with SSL enabled manually:
nikto -h example.com -sslUse a custom user agent:
nikto -h example.com -useragent Mozilla/5.0Scan through Tor (Tor must be running):
nikto -h example.com -useproxy http://127.0.0.1:9050Show all available options:
nikto -Help