summaryrefslogtreecommitdiffstats
path: root/network/nikto
diff options
context:
space:
mode:
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
commit9db78a86dada35f3de9a68600b3428fee289155c (patch)
tree905838da820eabccd850b3f1d8a54a1e62699992 /network/nikto
parent3a3ed9f8e4c726078706bf6c6301d63bf5f58f48 (diff)
downloadslackbuilds-9db78a86dada35f3de9a68600b3428fee289155c.tar.gz
slackbuilds-9db78a86dada35f3de9a68600b3428fee289155c.tar.xz
network/nikto: Added to 12.2 repository
Diffstat (limited to 'network/nikto')
-rw-r--r--network/nikto/README8
-rw-r--r--network/nikto/nikto.SlackBuild77
-rw-r--r--network/nikto/nikto.info8
-rw-r--r--network/nikto/slack-desc19
-rw-r--r--network/nikto/slackware.patch45
5 files changed, 157 insertions, 0 deletions
diff --git a/network/nikto/README b/network/nikto/README
new file mode 100644
index 0000000000..da70fa3639
--- /dev/null
+++ b/network/nikto/README
@@ -0,0 +1,8 @@
+Nikto is an Open Source (GPL) web server scanner which performs comprehensive
+tests against web servers for multiple items, including over 3500 potentially
+dangerous files/CGIs, versions on over 900 servers, and version specific
+problems on over 250 servers. Scan items and plugins are frequently updated and
+can be automatically updated (if desired).
+
+Nikto requires libwhisker2 and Net-SSLeay perl modules, both of which are
+available in the SlackBuilds.org repository.
diff --git a/network/nikto/nikto.SlackBuild b/network/nikto/nikto.SlackBuild
new file mode 100644
index 0000000000..07d1c45d1a
--- /dev/null
+++ b/network/nikto/nikto.SlackBuild
@@ -0,0 +1,77 @@
+#!/bin/sh
+
+# Slackware build script for Nikto Web Scanner
+#
+# Copyright 2009-2010 Marco Bonetti <sid77@slackware.it>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=nikto
+VERSION=${VERSION:-2.03}
+ARCH=${ARCH:-noarch}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="CHANGES.txt LICENSE.txt nikto_manual.html"
+
+# Most of the packaging techniques for this strange program comes from Debian
+# rules file; next time you'll be at the pub with your friendly debianist,
+# buy him a beer ;-) - sid77
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM
+chown -R root:root .
+
+# Fix nmap path, remove shipped libwhisker2 dependency and more
+patch -p1 < $CWD/slackware.patch
+
+# Install the program
+install -d $PKG/etc/nikto/ $PKG/usr/bin/ $PKG/usr/lib/nikto/plugins/
+install -m 0644 config.txt $PKG/etc/nikto/
+install -m 0644 plugins/* $PKG/usr/lib/nikto/plugins/
+install -m 0644 docs/CHANGES.txt $PKG/usr/lib/nikto/plugins/
+install -m 0755 nikto.pl $PKG/usr/bin/nikto
+# Remove the shipped libwhisker2
+rm -f $PKG/usr/lib/nikto/plugins/LW2.pm
+
+# Copy over important docs and man page
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/man/man1/
+( cd docs
+ cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION/
+ gzip -9c nikto.1 > $PKG/usr/man/man1/nikto.1.gz
+)
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/network/nikto/nikto.info b/network/nikto/nikto.info
new file mode 100644
index 0000000000..9a7c1ad1f5
--- /dev/null
+++ b/network/nikto/nikto.info
@@ -0,0 +1,8 @@
+PRGNAM="nikto"
+VERSION="2.03"
+HOMEPAGE="http://cirt.net/nikto2"
+DOWNLOAD="http://cirt.net/nikto/nikto-2.03.tar.bz2"
+MD5SUM="8f286a7943b12a341088f005f832d087"
+MAINTAINER="Marco Bonetti"
+EMAIL="sid77@slackware.it"
+APPROVED="rworkman"
diff --git a/network/nikto/slack-desc b/network/nikto/slack-desc
new file mode 100644
index 0000000000..97c2df6ceb
--- /dev/null
+++ b/network/nikto/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+nikto: Nikto (Web Server Scanner)
+nikto:
+nikto: Nikto is an Open Source (GPL) web server scanner which performs
+nikto: comprehensive tests against web servers for multiple items, including
+nikto: over 3500 potentially dangerous files/CGIs, versions on over 900
+nikto: servers, and version specific problems on over 250 servers. Scan items
+nikto: and plugins are frequently updated and can be automatically updated
+nikto: (if desired).
+nikto:
+nikto:
+nikto:
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);