问题表现:
执行perl nikto.pl -h 192.168.0.1这条命令之后,返回如下的错误:
Can't locate nikto.pl/plugins/nikto_core.plugin in @INC (@INC contains: C:/Perl/
site/lib C:/Perl/lib .) at nikto.pl line 89.
这句话的意思是说nikto.pl 文件中的第89行无法查到plugins下的nikto_core.plugin 文件
问题原因:
nikto无法定位到插件所在的位置,这种情况一般是在Windows下很容易发生的问题
解决方法:
打开nikto文件夹下的nikto.conf文件,找到
# if Nikto is having difficulty finding the 'plugins', set the full install path here的下一行
将EXECDIR前的#号去掉,将你安装的绝对路径粘贴在=号后边。如:
EXECDIR=C:/nikto
保存后,再运行perl nikto.pl -h 192.168.0.1成功运行!