summaryrefslogtreecommitdiff
path: root/network/nikto/patches
diff options
context:
space:
mode:
Diffstat (limited to 'network/nikto/patches')
-rw-r--r--network/nikto/patches/nikto-2.1.4/README3
-rw-r--r--network/nikto/patches/nikto-2.1.4/nikto.diff21
-rw-r--r--network/nikto/patches/nikto-2.1.5/nikto.conf.diff14
-rw-r--r--network/nikto/patches/nikto-2.1.5/nikto.pl.diff23
-rw-r--r--network/nikto/patches/nikto-2.1.5/nikto64.conf.diff14
5 files changed, 75 insertions, 0 deletions
diff --git a/network/nikto/patches/nikto-2.1.4/README b/network/nikto/patches/nikto-2.1.4/README
new file mode 100644
index 0000000000..4f9c30e667
--- /dev/null
+++ b/network/nikto/patches/nikto-2.1.4/README
@@ -0,0 +1,3 @@
+This directory and its file is kept as a reference to
+how the last maintainer patched nikto.pl. Will be
+deleted eventually.
diff --git a/network/nikto/patches/nikto-2.1.4/nikto.diff b/network/nikto/patches/nikto-2.1.4/nikto.diff
new file mode 100644
index 0000000000..1c3774db92
--- /dev/null
+++ b/network/nikto/patches/nikto-2.1.4/nikto.diff
@@ -0,0 +1,21 @@
+diff -Naur nikto-2.1.4.orig/nikto.pl nikto-2.1.4/nikto.pl
+--- nikto-2.1.4.orig/nikto.pl 2011-02-19 03:53:23.000000000 +0100
++++ nikto-2.1.4/nikto.pl 2011-02-21 17:50:11.978245864 +0100
+@@ -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 @@
+ 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";
+
+ my ($a, $b) = split(/\./, $LW2::VERSION);
+ die("- You must use LW2 2.4 or later\n") if ($a != 2 || $b < 4);
diff --git a/network/nikto/patches/nikto-2.1.5/nikto.conf.diff b/network/nikto/patches/nikto-2.1.5/nikto.conf.diff
new file mode 100644
index 0000000000..c07f565022
--- /dev/null
+++ b/network/nikto/patches/nikto-2.1.5/nikto.conf.diff
@@ -0,0 +1,14 @@
+
+Set the EXECDIR for nikto to /usr/lib/nikto
+
+--- nikto-2.1.5.orig/nikto.conf 2015-11-07 19:48:17.854292534 -0700
++++ nikto-2.1.5/nikto.conf 2015-11-07 19:49:23.270289730 -0700
+@@ -61,7 +61,7 @@
+ CHECKMETHODS=HEAD GET
+
+ # If you want to specify the location of any of the files, specify them here
+-# EXECDIR=/opt/nikto # Location of Nikto
++EXECDIR=/usr/lib/nikto # Location of Nikto
+ # PLUGINDIR=/opt/nikto/plugins # Location of plugin dir
+ # DBDIR=/opt/nikto/databases # Location of database dir
+ # TEMPLATEDIR=/opt/nikto/templates # Location of template dir
diff --git a/network/nikto/patches/nikto-2.1.5/nikto.pl.diff b/network/nikto/patches/nikto-2.1.5/nikto.pl.diff
new file mode 100644
index 0000000000..676ada3a9f
--- /dev/null
+++ b/network/nikto/patches/nikto-2.1.5/nikto.pl.diff
@@ -0,0 +1,23 @@
+
+Fix nikto.pl paths to use libwhisker2 from SBo.
+
+--- nikto-2.1.5.orig/nikto.pl 2012-09-10 02:22:36.000000000 -0600
++++ nikto-2.1.5/nikto.pl 2015-11-07 22:14:55.380915446 -0700
+@@ -56,14 +56,14 @@
+ 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";
+ 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
+
+ #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 --git a/network/nikto/patches/nikto-2.1.5/nikto64.conf.diff b/network/nikto/patches/nikto-2.1.5/nikto64.conf.diff
new file mode 100644
index 0000000000..35709331f6
--- /dev/null
+++ b/network/nikto/patches/nikto-2.1.5/nikto64.conf.diff
@@ -0,0 +1,14 @@
+
+Set the EXECDIR for nikto to /usr/lib64/nikto
+
+--- nikto-2.1.5.orig/nikto.conf 2015-11-07 19:48:17.854292534 -0700
++++ nikto-2.1.5/nikto.conf 2015-11-07 19:50:49.311286043 -0700
+@@ -61,7 +61,7 @@
+ CHECKMETHODS=HEAD GET
+
+ # If you want to specify the location of any of the files, specify them here
+-# EXECDIR=/opt/nikto # Location of Nikto
++EXECDIR=/usr/lib64/nikto # Location of Nikto
+ # PLUGINDIR=/opt/nikto/plugins # Location of plugin dir
+ # DBDIR=/opt/nikto/databases # Location of database dir
+ # TEMPLATEDIR=/opt/nikto/templates # Location of template dir