How to use nikto

Hackbydoing Academy tool guide · Web hacking · free, no login

What nikto is, in plain words

Nikto scans a web server for known problems: dangerous leftover files, out-of-date programs, and risky settings.

A working nikto command

nikto -h http://192.168.99.20

This runs nikto's full set of checks against the web server at 192.168.99.20 and lists everything questionable it finds.

Every piece of the command, explained

-FormatThe next piece names the style of the saved report, such as csv, html or txt. It only matters together with -o, and the capital F is part of the flag.
-hIn nikto this means host, not help: the next piece is the target web server to scan, given as an address or a full URL.
-oThe next piece is the name of a file to save the report into, instead of only showing it on screen.
-pThe next number is the port to scan, for when the web server listens on a non-standard door instead of the usual 80 or 443.

Use it the legal way

Only run nikto on systems you own or have explicit, written permission to test — at work that means a signed engagement, at home that means your own lab. Inside Hackbydoing Academy you practice on simulated networks and lab machines built for exactly this, where breaking things is the lesson and no one else's systems are involved. Learning how a tool works also teaches you what it looks like from the defender's chair: the logs it leaves, the traffic it makes, and the settings that shut it down.

✦ Practice nikto hands-on in a guided lab

Reading about nikto is step one. In the Academy you run it yourself, step by step, in guided labs on simulated networks — 185 rooms covering attack and defense, from your first scan to full operations, with a defender's debrief at the end of every room. Founding membership is $9.99/mo for the first 500 members.

Join Hackbydoing Academy →

Related tool guides

Free from the Hackbydoing Academy — learn cybersecurity by doing: real tools, guided labs, attack and defense, on simulated networks. More free material: Tool Guides index · Free Downloads Library · Hackbydoing Academy · Print this page (Ctrl/Cmd+P) for a clean paper copy.