Skip to content

Instantly share code, notes, and snippets.

@theMiddleBlue
Created October 13, 2016 07:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save theMiddleBlue/502f516b38470446d07fa196d65dc79e to your computer and use it in GitHub Desktop.
Save theMiddleBlue/502f516b38470446d07fa196d65dc79e to your computer and use it in GitHub Desktop.
Download latest nikto from github, change user agent on configuration file and test it
#!/bin/bash
git clone https://github.com/sullo/nikto.git;
cat nikto/program/nikto.conf | grep -v 'USERAGENT\=' > nikto/program/nikto.conf.new;
echo -en '\nUSERAGENT=Mozilla/5.0 (Linux; Android 6.0; ALE-L21 Build/HuaweiALE-L21) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.124 Mobile Safari/537.36' >> nikto/program/nikto.conf.new;
mv -f nikto/program/nikto.conf.new nikto/program/nikto.conf;
perl nikto/program/nikto.pl -Help
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment