Well I learned something new--If you 'use' a module and include keywords (like 'sleep', which we did here) the keywords are only local to that scope. So essentially a sleep() call inside the eval would have used the Time::HiRes, but nothing outside.<div>
<br></div><div>It's been changed to a require which seems to fix the issue as that is global. My testing shows the requests quite a bit slower than normal--Dave, can you confirm (running out of the git repo). </div><div>
<br></div><div>Thanks,</div><div>Sullo</div><div><br><div class="gmail_quote">On Mon, Mar 18, 2013 at 1:51 PM, Dave Wray <span dir="ltr"><<a href="mailto:david.wray@sec-tec.co.uk" target="_blank">david.wray@sec-tec.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><div class="im"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I installed Time::HiRes (v1.9725), the module’s path is in my @INC path, but I still cannot get this to work.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Nikto reports that it is pausing .5 seconds, but the web server log shows a much faster rate. Is anyone else able to confirm if they have this working as expected? Not just reporting 0.5 seconds pause but actually pausing between requests for that time.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Anything I can try?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Many thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">D<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:csullo@gmail.com" target="_blank">csullo@gmail.com</a> [mailto:<a href="mailto:csullo@gmail.com" target="_blank">csullo@gmail.com</a>] <b>On Behalf Of </b>Sullo<br>
<b>Sent:</b> 17 March 2013 13:02<br><b>To:</b> Dave Wray<br><b>Cc:</b> <a href="mailto:Nikto-discuss@attrition.org" target="_blank">Nikto-discuss@attrition.org</a><br><b>Subject:</b> Re: [Nikto-discuss] Non integer pause times not working as expected<u></u><u></u></span></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">Do you have the TIme::HiRes module installed? If you do, any valid number > 0 should work. For example:<u></u><u></u></p><div><div class="h5"><div>
<p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal">sullo$ ./<a href="http://nikto.pl" target="_blank">nikto.pl</a> -h localhost -Pause .5<u></u><u></u></p></div><div><p class="MsoNormal">-***** Pausing .5 second(s) per request *****<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">If you don't have Time::HiRes you can still use Pause but you can only use whole seconds. This may be what is tripping you up? <u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Regards,<u></u><u></u></p></div><div><p class="MsoNormal">Sullo<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div>
<p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Wed, Mar 13, 2013 at 4:55 PM, Dave Wray <<a href="mailto:david.wray@sec-tec.co.uk" target="_blank">david.wray@sec-tec.co.uk</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal">All,<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I’m having trouble setting non-integer pauses times such as 0.5 seconds. <u></u><u></u></p><p class="MsoNormal">
Nikto 2.1.5 (fully updated) seems to treat values less than 1 as zero.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Thanks in advance.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">D<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal"><br>________________________________________________________________________<br>Sec-Tec Ltd, leading specialists in information security professional services. Visit <a href="http://www.sec-tec.co.uk" target="_blank">http://www.sec-tec.co.uk</a> for more information on our services. This e-mail has been scanned for possible virus contamination. However, we recommend that all recipients also scan this message.<u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>Nikto-discuss mailing list<br><a href="mailto:Nikto-discuss@attrition.org" target="_blank">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><u></u><u></u></p></div><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p><div>
<p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <br><br><a href="http://cirt.net" target="_blank">http://cirt.net</a> | <a href="http://richsec.com/" target="_blank">http://richsec.com/</a> <u></u><u></u></p>
</div></div></div></div><div><div class="h5"><br clear="both">
________________________________________________________________________<br>
Sec-Tec Ltd, leading specialists in information security professional services. Visit <a href="http://www.sec-tec.co.uk" target="_blank">http://www.sec-tec.co.uk</a> for more information on our services. This e-mail has been scanned for possible virus contamination. However, we recommend that all recipients also scan this message.<br>
</div></div></div><br>_______________________________________________<br>
Nikto-discuss mailing 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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><br><a href="http://cirt.net" target="_blank">http://cirt.net</a> | <a href="http://richsec.com/" target="_blank">http://richsec.com/</a>
</div>