diff options
author | Marco Bonetti <sid77@slackware.it> | 2010-05-12 23:32:35 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:32:35 +0200 |
commit | 9db78a86dada35f3de9a68600b3428fee289155c (patch) | |
tree | 905838da820eabccd850b3f1d8a54a1e62699992 /network/nikto/slackware.patch | |
parent | 3a3ed9f8e4c726078706bf6c6301d63bf5f58f48 (diff) | |
download | slackbuilds-9db78a86dada35f3de9a68600b3428fee289155c.tar.gz |
network/nikto: Added to 12.2 repository
Diffstat (limited to 'network/nikto/slackware.patch')
-rw-r--r-- | network/nikto/slackware.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/network/nikto/slackware.patch b/network/nikto/slackware.patch new file mode 100644 index 0000000000..218bb88e3f --- /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); |