diff --git a/nikto-libwhisker2.patch b/nikto-libwhisker2.patch index d83665d..f3852fc 100644 --- a/nikto-libwhisker2.patch +++ b/nikto-libwhisker2.patch @@ -1,22 +1,17 @@ -Patch to use system-wide installed libwhisker2 -diff -ru nikto-2.1.4/nikto.pl nikto-2.1.4.new/nikto.pl ---- nikto-2.1.4/nikto.pl 2011-03-28 02:36:38.000000000 +0200 -+++ nikto-2.1.4.new/nikto.pl 2011-03-28 02:35:33.000000000 +0200 -@@ -6,7 +6,7 @@ - use Getopt::Long; - Getopt::Long::Configure('no_ignore_case'); - --# use LW2; ### Change this line to use a different installed version -+use LW2; ### Change this line to use a different installed version - - ############################################################################### - # Nikto # -@@ -85,7 +85,7 @@ +diff -ru nikto-2.1.5/nikto.pl nikto-2.1.5.new/nikto.pl +--- nikto-2.1.5/nikto.pl 2012-09-18 16:03:18.858811310 +0530 ++++ nikto-2.1.5.new/nikto.pl 2012-09-18 16:05:17.954814058 +0530 +@@ -56,11 +56,11 @@ + setup_dirs(); require "$CONFIGFILE{'PLUGINDIR'}/nikto_core.plugin"; nprint("T:" . localtime($COUNTERS{'scan_start'}) . ": Starting", "d"); - require "$CONFIGFILE{'PLUGINDIR'}/nikto_single.plugin"; -require "$CONFIGFILE{'PLUGINDIR'}/LW2.pm"; +#require "$CONFIGFILE{'PLUGINDIR'}/LW2.pm"; + require "$CONFIGFILE{'PLUGINDIR'}/JSON-PP.pm"; + $VARIABLES{'GMTOFFSET'} = gmt_offset(); + +-# use LW2; ### Change this line to use a different installed version ++use LW2; ### Change this line to use a different installed version - my ($a, $b) = split(/\./, $LW2::VERSION); - die("- You must use LW2 2.4 or later\n") if ($a != 2 || $b < 4); + #set SSL Engine + LW2::init_ssl_engine($CONFIGFILE{'LW_SSL_ENGINE'});