diff -ru nikto-2.1.6.orig/program/nikto.pl nikto-2.1.6.new/program/nikto.pl
--- nikto-2.1.6.orig/program/nikto.pl 2018-06-08 22:38:26.641000000 +0000
+++ nikto-2.1.6.new/program/nikto.pl 2018-06-08 22:41:48.064000000 +0000
@@ -54,13 +54,13 @@
setup_dirs();
require "$CONFIGFILE{'PLUGINDIR'}/nikto_core.plugin";
nprint("T:" . localtime($COUNTERS{'scan_start'}) . ": Starting", "d");
-require "$CONFIGFILE{'PLUGINDIR'}/LW2.pm";
+#require "$CONFIGFILE{'PLUGINDIR'}/LW2.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
#set SSL Engine
-LW2::init_ssl_engine($CONFIGFILE{'LW_SSL_ENGINE'});
+#LW2::init_ssl_engine($CONFIGFILE{'LW_SSL_ENGINE'});
my ($a, $b) = split(/\./, $LW2::VERSION);
die("- You must use LW2 2.4 or later\n") if ($a != 2 || $b < 4);
diff -ru nikto-2.1.6.orig/program/plugins/nikto_core.plugin nikto-2.1.6.new/program/plugins/nikto_core.plugin
--- nikto-2.1.6.orig/program/plugins/nikto_core.plugin 2015-07-09 14:06:04.000000000 +0000
+++ nikto-2.1.6.new/program/plugins/nikto_core.plugin 2018-06-08 23:17:43.808000000 +0000
@@ -2572,7 +2572,7 @@
if ($@) {
nprint("+ WARNING: Module JSON::PP missing. -Savedir and replay functionality cannot be used.");
}
- LW2::init_ssl_engine();
+ # LW2::init_ssl_engine();
my ($avail, $lib, $ver) = LW2::ssl_is_available();
if (!$avail) {
nprint("+ WARNING: SSL: support not available.");
diff -ru nikto-2.1.6.orig/program/replay.pl nikto-2.1.6.new/program/replay.pl
--- nikto-2.1.6.orig/program/replay.pl 2015-07-09 14:06:04.000000000 +0000
+++ nikto-2.1.6.new/program/replay.pl 2018-06-08 22:43:33.852000000 +0000
@@ -22,7 +22,8 @@
###############################################################################
use Getopt::Long;
use JSON::PP;
-require 'plugins/LW2.pm';
+#require 'plugins/LW2.pm';
+use LW2; ### Change this line to use a different installed version
my ($infile, $proxy, %request, $header, %result, $s_request);
LW2::http_init_request(\%request);