summaryrefslogtreecommitdiffstats
path: root/network/nikto/slackware.patch
blob: 218bb88e3fc868f35fa57761e3220afdce8d15d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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);