Page 1 of 1

Nikto 2.1.4 CentOS 6.2 Errors

Posted: Wed May 30, 2012 5:21 am
by TomStage
Hi all

There seems to be an error in the Nikto 2.1.4 RPM package for CentOS 6.

1. The link to the nikto configuration is broken, it points to it self.
2. The nikto.dtd is not in the rpm file, henced no xml export of the result.

The first error can be fixed quit easy:

Code: Select all

cd /etc
rm -rf nikto.conf
ln -s ./nikto/config nikto.conf
The second error can be fixed by downloading the nikto source from https://cirt.net/nikto/nikto-2.1.4.tar.gz, and unpacking the nikto.dtd to ex. /etc/nikto and then change the /etc/nikto/config file to point at this nikto.dtd.

I hope this can help others with the same issues.

Cheers Tom

Re: Nikto 2.1.4 CentOS 6.2 Errors

Posted: Wed May 30, 2012 11:30 am
by scott
Awesome work, I just merged your changes into the latest update (pretty extensive!) as verson 2.1.4-4. The only change is I've got the dtd file stored in the datadir instead of sysconfig.

Re: Nikto 2.1.4 CentOS 6.2 Errors

Posted: Thu May 31, 2012 2:40 am
by TomStage
Hi Scott

Great work.

Cheers Tom

Re: Nikto 2.1.4 CentOS 6.2 Errors

Posted: Thu May 31, 2012 4:06 am
by TomStage
Hi Scott

I found a litte bug in the new Nikto package, it looks like the DOCDIR in the config file is pointing to the wrong path, it points to: /usr/share/nikto/docs

But the Nikto docs are located in /usr/share/doc/nikto-2.1.4/

I found this issue by doing an nikto -update, and it was complaning about not being able to open /usr/share/nikto/docs/CHANGES.txt for writing.

After changening the path in the config file, and removing all the db_files a nikto -update ran flawlessly.


Cheers Tom

Re: Nikto 2.1.4 CentOS 6.2 Errors

Posted: Thu May 31, 2012 4:26 pm
by scott
Great followup! so it looks like its a deeper bug than the package. The plugin actually uses "DOCUMENTDIR" instead of "DOCDIR". I couldnt find anything that actually uses "DOCDIR", so Id say thats an upstream problem too.

Easy enough to fix I set it to change the config file by default to the correct config token, give 2.1.4-5.2 a shot and let me know if that gets it.

And if you want to help debug another package, theres a nagging issue with authd in ossec we havent been able to ID yet. :P

Re: Nikto 2.1.4 CentOS 6.2 Errors

Posted: Wed Jun 06, 2012 4:13 am
by TomStage
Hi Scott

I have updated to nikto 2.1.4-5.2, and all seems to work as intended.

Good work 8)


I will see if i can get a test enviroment up and running for testeng ossec, but i cant promise anything.

Cheers Tom