mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
network/nikto: Added to 12.2 repository
This commit is contained in:
parent
3a3ed9f8e4
commit
9db78a86da
5 changed files with 157 additions and 0 deletions
8
network/nikto/README
Normal file
8
network/nikto/README
Normal file
|
@ -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.
|
77
network/nikto/nikto.SlackBuild
Normal file
77
network/nikto/nikto.SlackBuild
Normal file
|
@ -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
|
8
network/nikto/nikto.info
Normal file
8
network/nikto/nikto.info
Normal file
|
@ -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"
|
19
network/nikto/slack-desc
Normal file
19
network/nikto/slack-desc
Normal file
|
@ -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:
|
45
network/nikto/slackware.patch
Normal file
45
network/nikto/slackware.patch
Normal file
|
@ -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);
|
Loading…
Reference in a new issue