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 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
Fix paths to be compatible with Debian installation
Index: nikto/nikto.pl
===================================================================
--- nikto.orig/nikto.pl
+++ nikto/nikto.pl
@@ -47,7 +47,7 @@ $COUNTERS{'scan_start'} = time();
$VARIABLES{'DIV'} = "-" x 75;
$VARIABLES{'name'} = "Nikto";
$VARIABLES{'version'} = "2.1.5";
-$VARIABLES{'configfile'} = "/etc/nikto.conf"; ### Change if it's having trouble finding it
+$VARIABLES{'configfile'} = "/etc/nikto/config.txt";
# signal trap so we can close down reports properly
$SIG{'INT'} = \&safe_quit;
@@ -56,11 +56,10 @@ config_init();
setup_dirs();
require "$CONFIGFILE{'PLUGINDIR'}/nikto_core.plugin";
nprint("T:" . localtime($COUNTERS{'scan_start'}) . ": Starting", "d");
-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
+use JSON::PP;
#set SSL Engine
LW2::init_ssl_engine($CONFIGFILE{'LW_SSL_ENGINE'});
Index: nikto/nikto.conf
===================================================================
--- nikto.orig/nikto.conf
+++ nikto/nikto.conf
@@ -23,7 +23,7 @@ RFIURL=http://cirt.net/rfiinc.txt?
#SKIPIDS=
# The DTD
-NIKTODTD=docs/nikto.dtd
+NIKTODTD=/usr/share/doc/nikto/nikto.dtd
# the default HTTP version to try... can/will be changed as necessary
DEFAULTHTTPVER=1.0
@@ -61,11 +61,11 @@ CIRT=174.142.17.165
CHECKMETHODS=HEAD GET
# If you want to specify the location of any of the files, specify them here
-# EXECDIR=/opt/nikto # Location of Nikto
-# PLUGINDIR=/opt/nikto/plugins # Location of plugin dir
-# DBDIR=/opt/nikto/databases # Location of plugin dir
-# TEMPLATEDIR=/opt/nikto/templates # Location of tempmlate dir
-# DOCDIR=/opt/nikto/docs # Location of docs dir
+EXECDIR=/var/lib/nikto # Location of Nikto
+PLUGINDIR=/var/lib/nikto/plugins # Location of plugin dir
+DBDIR=/var/lib/nikto/databases # Location of plugin dir
+TEMPLATEDIR=/var/lib/nikto/templates # Location of tempmlate dir
+DOCDIR=/usr/share/docs/nikto # Location of docs dir
# Default plugin macros
@@MUTATE=dictionary;subdomain
|