Nikto Command-Line Cheat Sheet

Photo by Cottonbro on Pexels
Published 18 April 2024 Last updated 19 April 2024 An older guide that hasn't been re-checked yet, so commands or versions may have moved on. How guides are made and checked

This cheat sheet references some of the most commonly used Nikto commands. Whether you’re a seasoned professional looking to brush up on your command-line skills or a newcomer eager to explore the possibilities of networking through Nikto, you’ll find valuable insights and shortcuts here.

Installation:

DistributionCommand
Debian/Ubuntusudo apt-get install nikto
CentOS/Fedora/Red Hatsudo yum install nikto
NixOSnix-env -i nikto

Usage:

TaskCommand
Basic Scannikto -h
Scan with SSLnikto -h -ssl
Scan on specific portnikto -h <host> -p <port>
Save scan reportnikto -h -o
Use specific tuning optionsnikto -h -Tuning
Scan specific target IPs while ignoring some 404 codesnikto -h targetIP.txt -Tuning 5 -404code 302,301,404

Example output:

Wrapping Up

This Nikto cheat sheet has highlighted the tool’s flexibility and power for everything from simple tasks to advanced operations. Mastering Nikto can significantly boost your networking skills. Keep practising, exploring further resources, and share your findings to deepen your understanding and contribute to the community’s collective knowledge.

You May Also Be Interested In

References

The information for the Nikto commands and usage was synthesized and adapted from several sources, including Digital Security Blog​ (Digital Security)​, Comparitech​ (Comparitech)​, and Highon.coffee​ (HighOn.Coffee)​, and FreeCodeCamp​ (FreeCodeCamp)​.