summaryrefslogtreecommitdiff
path: root/network/nikto/patches/nikto-2.1.5
diff options
context:
space:
mode:
authorBrenton Earl <brent@exitstatusone.com>2015-11-09 23:06:26 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-09 23:06:26 +0700
commit60c52eeee2601b1e2473b96d5abcdfbca690b485 (patch)
tree27cb627bc557f15d3792e603516edd16298462a4 /network/nikto/patches/nikto-2.1.5
parent96ce7ed40246002fceecac452dcac0c14e6e317c (diff)
downloadslackbuilds-60c52eeee2601b1e2473b96d5abcdfbca690b485.tar.gz
network/nikto: Updated for version 2.1.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/nikto/patches/nikto-2.1.5')
-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
3 files changed, 51 insertions, 0 deletions
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