diff options
author | David Abbott <dabbott@gentoo.org> | 2010-11-08 21:08:05 -0500 |
---|---|---|
committer | David Abbott <dabbott@gentoo.org> | 2010-11-08 21:08:05 -0500 |
commit | 5e0fd80760a4763ea86ccb62aebf6d9ef9e1d61e (patch) | |
tree | 34ac1f21a5637ba30d771fbcace5092f60573fb1 | |
parent | [add] dev-perl/pod2pdf-0.42 (diff) | |
download | perl-overlay-5e0fd80760a4763ea86ccb62aebf6d9ef9e1d61e.tar.gz perl-overlay-5e0fd80760a4763ea86ccb62aebf6d9ef9e1d61e.tar.bz2 perl-overlay-5e0fd80760a4763ea86ccb62aebf6d9ef9e1d61e.zip |
nikto bump to 2.1.3
-rw-r--r-- | net-analyzer/nikto/files/nikto-2.1.3-PL.patch | 28 | ||||
-rw-r--r-- | net-analyzer/nikto/nikto-2.1.3.ebuild | 57 |
2 files changed, 85 insertions, 0 deletions
diff --git a/net-analyzer/nikto/files/nikto-2.1.3-PL.patch b/net-analyzer/nikto/files/nikto-2.1.3-PL.patch new file mode 100644 index 000000000..fb5b71c43 --- /dev/null +++ b/net-analyzer/nikto/files/nikto-2.1.3-PL.patch @@ -0,0 +1,28 @@ +--- a/nikto-2.1.3/nikto.pl 2010-09-07 08:55:51.000000000 -0400 ++++ b/nikto-2.1.3/nikto.pl 2010-11-08 19:58:10.000000000 -0500 +@@ -6,7 +6,7 @@ + use Getopt::Long; + Getopt::Long::Configure('no_ignore_case'); + +-# use LW2; ### Change this line to use a different installed version ++use LW2; ### Change this line to use a different installed version + + ############################################################################### + # Nikto # +@@ -52,7 +52,7 @@ + $NIKTO{'DIV'} = "-" x 75; + $NIKTO{'version'} = "2.1.3"; + $NIKTO{'name'} = "Nikto"; +-$NIKTO{'configfile'} = "/etc/nikto.conf"; ### Change this line if it's having trouble finding it ++$NIKTO{'configfile'} = "/etc/nikto/nikto.conf"; ### Change this line if it's having trouble finding it + + # put a signal trap so we can close down reports properly + $SIG{'INT'} = \&safe_quit; +@@ -89,7 +89,6 @@ + require "$NIKTOCONFIG{'PLUGINDIR'}/nikto_core.plugin"; + nprint("T:" . localtime($COUNTERS{'startsec'}) . ": Starting", "d"); + require "$NIKTOCONFIG{'PLUGINDIR'}/nikto_single.plugin"; +-require "$NIKTOCONFIG{'PLUGINDIR'}/LW2.pm"; + + my ($a, $b) = split(/\./, $LW2::VERSION); + die("- You must use LW2 2.4 or later\n") if ($a != 2 || $b < 4); diff --git a/net-analyzer/nikto/nikto-2.1.3.ebuild b/net-analyzer/nikto/nikto-2.1.3.ebuild new file mode 100644 index 000000000..d617adef9 --- /dev/null +++ b/net-analyzer/nikto/nikto-2.1.3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="Web Server vulnerability scanner." +HOMEPAGE="http://www.cirt.net/code/nikto.shtml" +SRC_URI="http://www.cirt.net/source/nikto/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ssl" + +DEPEND="dev-lang/perl + net-analyzer/nmap + ssl? ( + dev-libs/openssl + dev-perl/Net-SSLeay + ) + >=net-libs/libwhisker-2.5" + +RDEPEND="${DEPEND}" + +src_prepare() { + rm plugins/LW2.pm || die "removing bundled lib LW2.pm failed" + epatch "${FILESDIR}"/"${PF}"-PL.patch || die "patch failed" +} + +src_install() { + + dodir /etc/nikto || die "dodir failed" + insinto /etc/nikto + doins "${FILESDIR}"/nikto.conf || die "doins failed" + + dobin nikto.pl || die "dobin failed" + insinto /usr/bin + doins nikto.pl || die "doins failed" + + dodir /var/lib/nikto || die "dodir failed" + insinto /var/lib/nikto + doins -r templates plugins || die "doins failed" + + dodoc docs/*.txt || die "dodoc failed" + dohtml docs/nikto_manual.html || die "dohtml failed" + doman docs/nikto.1 || die "doman failed" + insinto /usr/share/doc/"${PF}" docs/nikto.dtd || die "doins failed" +} + +pkg_postinst() { + elog 'Default configuration file is "/etc/nikto/nikto.conf"' + elog 'To test "perl /usr/bin/nikto.pl -h 192.168.0.1"' + elog 'This will scan the IP 192.168.0.1 on TCP port 80' +} |