Skip to content

Using a Proxy

sullo edited this page Jul 21, 2018 · 2 revisions

There are two ways to use an HTTP(S) proxy with Nikto--via the nikto.conf file, or directly via the command line.

To use the nikto.conf file, set the PROXY* variables (as described in the Config Variables), and then execute Nikto with the -useproxy option. All connections will be relayed through the proxy specified in the configuration file.

perl nikto.pl -h localhost -p 80 -useproxy

To set the proxy on the command line, you can also use the -useproxy option with the proxy set as the argument, for example:

./nikto.pl -h localhost -useproxy http://localhost:8080/

SOCKS Proxies are not directly supported, however can be used via proxychains or similar program.