<div dir="ltr">run_hooks pretty much *is* Nikto: it's the bit that runs all of the plugins.<br><br>In essence Nikto > 2.1.0 is just a plugin runner. The core component of Nikto parses the command line, cleans up a lot of the gubbins, and the runs all the plugins.<br>
<br>To run a plugin it will call run_hooks at various points, this then goes through the plugin list and calls each registered plugin for that hook, the phases (or hooks - phase was the 2.1.0 term; it became hook in 2.1.1 or 2.1.2) are described in the documentation: <a href="http://cirt.net/nikto2-docs/expanding.html#id2792681">http://cirt.net/nikto2-docs/expanding.html#id2792681</a><br>
<br>So, in essence, don't touch run_hooks unless you know what you're doing or things will go weird.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 4 July 2014 09:35, raymond lukanta <span dir="ltr"><<a href="mailto:raymond_pluto@hotmail.com" target="_blank">raymond_pluto@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">I've found the answer for question number 2.<div>It's because the host name has been set at the beginning of scanning. </div><div><br></div><div>In fact, the second parameter of nfetch is URI. <span style="font-size:12pt">So, for example I set host to "localhost", then the URL will become localhost/<a href="http://www.google.com" target="_blank">www.google.com</a>.</span></div>
<div><br></div><div>I'm still waiting the answer for question 1. :-)</div><div><br><font><span style="color:rgb(79,129,189);font-family:Arial,sans-serif;line-height:17px;background-color:rgb(255,255,255)">--</span><br style="line-height:17px;color:rgb(79,129,189);font-family:Arial,sans-serif">
<span style="color:rgb(79,129,189);font-family:Arial,sans-serif;line-height:17px;background-color:rgb(255,255,255)">Raymond</span></font><br><br><div><hr>From: <a href="mailto:raymond_pluto@hotmail.com" target="_blank">raymond_pluto@hotmail.com</a><br>
To: <a href="mailto:nikto-discuss@attrition.org" target="_blank">nikto-discuss@attrition.org</a><br>Date: Fri, 4 Jul 2014 13:19:08 +0700<br>Subject: [Nikto-discuss] [Ask] nikto_core.plugin<div><div class="h5"><br><br>


<div dir="ltr">Hi,<div><br></div><div>I have 2 questions.</div><div><span style="font-size:12pt"><br></span></div><div><span style="font-size:12pt">1. </span><span style="font-size:12pt">What's the function of subroutine named run_hooks? </span><span style="font-size:12pt">What I got from the code is the subroutine do some checking, but I don't understand what the function of those checkings.</span></div>
<div><br></div><div>2. I try to call: nfetch($mark, "<a href="http://www.google.com" target="_blank">www.google.com</a>", "GET");</div><div>   But the response is error code 400. What's wrong with my request?</div>
<div><br></div><div>Thanks.</div><div><br><font><span style="color:rgb(79,129,189);font-family:Arial,sans-serif;line-height:17px;background-color:rgb(255,255,255)">--</span><br style="line-height:17px;color:rgb(79,129,189);font-family:Arial,sans-serif">
<span style="color:rgb(79,129,189);font-family:Arial,sans-serif;line-height:17px;background-color:rgb(255,255,255)">Raymond </span></font></div>                                       </div>
<br></div></div>_______________________________________________
Nikto is sponsored by Netsparker, a false positive free web application security scanner.
Visit <a href="https://www.netsparker.com/" target="_blank">https://www.netsparker.com/</a> for more information.
_______________________________________________
Nikto-discuss mail list
<a href="mailto:Nikto-discuss@attrition.org" target="_blank">Nikto-discuss@attrition.org</a>
<a href="https://attrition.org/mailman/listinfo/nikto-discuss" target="_blank">https://attrition.org/mailman/listinfo/nikto-discuss</a></div></div>                                           </div></div>
<br>_______________________________________________<br>
Nikto is sponsored by Netsparker, a false positive free web application security scanner.<br>
Visit <a href="https://www.netsparker.com/" target="_blank">https://www.netsparker.com/</a> for more information.<br>
_______________________________________________<br>
Nikto-discuss mail list<br>
<a href="mailto:Nikto-discuss@attrition.org">Nikto-discuss@attrition.org</a><br>
<a href="https://attrition.org/mailman/listinfo/nikto-discuss" target="_blank">https://attrition.org/mailman/listinfo/nikto-discuss</a><br></blockquote></div><br></div>