aboutsummaryrefslogtreecommitdiff
path: root/network/nikto/slackware.patch
diff options
context:
space:
mode:
Diffstat (limited to 'network/nikto/slackware.patch')
-rw-r--r--network/nikto/slackware.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/network/nikto/slackware.patch b/network/nikto/slackware.patch
new file mode 100644
index 000000000000..218bb88e3fc8
--- /dev/null
+++ b/network/nikto/slackware.patch
@@ -0,0 +1,45 @@
+diff -Naur nikto.orig/config.txt nikto/config.txt
+--- nikto.orig/config.txt 2008-09-04 19:00:41.000000000 +0200
++++ nikto/config.txt 2008-12-14 17:33:00.000000000 +0100
+@@ -8,7 +8,7 @@
+
+ # location of nmap to use with port scanning (rather than Nikto internals)
+ # and any options to pass to it
+-NMAP=/usr/local/bin/nmap
++NMAP=/usr/bin/nmap
+ NMAPOPTS=-P0
+
+ # ports never to scan
+@@ -18,7 +18,7 @@
+ #SKIPIDS=
+
+ # if Nikto is having difficulty finding the 'plugins', set the full install path here
+-# EXECDIR=/usr/local/nikto
++EXECDIR=/usr/lib/nikto
+
+ # the default HTTP version to try... can/will be changed as necessary
+ DEFAULTHTTPVER=1.0
+diff -Naur nikto.orig/nikto.pl nikto/nikto.pl
+--- nikto.orig/nikto.pl 2008-09-04 19:00:41.000000000 +0200
++++ nikto/nikto.pl 2008-12-14 17:36:04.000000000 +0100
+@@ -50,7 +50,7 @@
+ $DIV = "-" x 75;
+ $NIKTO{version} = "2.03";
+ $NIKTO{name} = "Nikto";
+-$NIKTO{configfile} = "config.txt"; ### Change this line if your setup is having trouble finding it
++$NIKTO{configfile} = "/etc/nikto/config.txt"; ### Change this line if your setup is having trouble finding it
+ $http_eol = "\r\n";
+
+ # read the --config option
+@@ -68,9 +68,9 @@
+ nprint("T:$STARTTIME: Starting", "d");
+ require "$NIKTO{plugindir}/nikto_reports.plugin"; ### Change this line if your setup is having trouble finding it
+ require "$NIKTO{plugindir}/nikto_single.plugin"; ### Change this line if your setup is having trouble finding it
+-require "$NIKTO{plugindir}/LW2.pm"; ### Change this line if your setup is having trouble finding it
++#require "$NIKTO{plugindir}/LW2.pm"; ### Change this line if your setup is having trouble finding it
+
+-# use LW2; ### Change this line to use a different installed version
++use LW2; ### Change this line to use a different installed version
+
+ ($a, $b) = split(/\./, $LW2::VERSION);
+ die("- You must use LW2 2.4 or later\n") if ($a != 2 || $b < 4);