summaryrefslogtreecommitdiff
path: root/net-analyzer/nikto
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/nikto
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/nikto')
-rw-r--r--net-analyzer/nikto/Manifest7
-rw-r--r--net-analyzer/nikto/metadata.xml5
-rw-r--r--net-analyzer/nikto/nikto-1.36.ebuild50
-rw-r--r--net-analyzer/nikto/nikto-2.1.5.ebuild58
4 files changed, 120 insertions, 0 deletions
diff --git a/net-analyzer/nikto/Manifest b/net-analyzer/nikto/Manifest
new file mode 100644
index 000000000000..130e98e6467b
--- /dev/null
+++ b/net-analyzer/nikto/Manifest
@@ -0,0 +1,7 @@
+DIST nikto-1.36.tar.gz 206921 SHA256 a5c7f10e73b3ab9d262732a1377902589a7cde268666db892cc59f4b00e1bedc SHA512 e340eebc8323a689b1fe8358626f90d822f4eea4aaeba44c64f68c758fccdec7c3d5896b93739128b1b53429967d4e66ccb08b880066e0c63bed4e2748f94a45 WHIRLPOOL bf81034852d94d2d3007a886915552926329aa0d4ab0c869cec021931c77a6e9cea0cbe4679c58e53ea71b8fc0e7f97bc9e876ff0fba4e29ba1b1b7472a7a1b0
+DIST nikto-2.1.5.tar.bz2 311580 SHA256 65b99c1fdec14d1d5e7cbc964f70fce162cbec50aee878e1500e2d22df079b34 SHA512 623b0fa923c05ecc4b69087321b544941f09b4d84fb7a32f6970e2ea42b2018f2c4e2d1cd0fabfc1c99a2ca7b57fd8c0d9f5f13c86e7eb102f00bdfd3062a95f WHIRLPOOL c4b15484b3fcb9df9219743cc138073b9b24673cf1e20d066dd632da3dc8aa0ac21d5cd7bc5e012a8bfea8d75fc82d25d85fd37e0038bf9c217e8437eb2cea0d
+EBUILD nikto-1.36.ebuild 1270 SHA256 667bcb10a872360978bea29bd1b716ff2001d557e18f82f69275b1ef23f331b4 SHA512 0dee0f4e120434266ac23a0ad1611f9ca2367026166538aa584f00f26da50d1b89981d7d86ed665bc60ddec07091a1d361d6383d5e5c7c7b878083005c8e97df WHIRLPOOL d0a69cc61dbcc7417ca5dbd405c87d63b396cb22e671a7db746b5a81d822125bbaa721c6e0c6bc45c0a70b43dabd9ee1e5360c8f9acb6d265e4835a19001cbed
+EBUILD nikto-2.1.5.ebuild 1279 SHA256 334af31c6d739a22d4855c791e4dd7fbdbf57e06509c247d1e2df4e829b34c27 SHA512 9022bfcaba0a09e0214ba450fb68574828d87ca48f948dedc484fc9d802046f8e0882c16a787c64d20bf41a8757052feecec532d78145320e2fe209359692005 WHIRLPOOL b80079c6c227c03cd5fa80ea2d00f7fb595aae7b900366f8b6dbe0aacbdeec0ae826ed969d671904469b4aa11eab593af7de813fa6c4e936d474520fd7ee7972
+MISC ChangeLog 2868 SHA256 d85ef0182152ef68cfa3679dc35cc4ddae62cbc7eb9385b4b28dfce897d848a2 SHA512 67d66ad0b50c236ce6832fb812e9fe2087aa389d234fc2fb9c6c7d78aadcdd2c8ab8fb9cfb2af65262e65618d0bd56d256e6c8cec6a2f029fba02dcfa90fb85f WHIRLPOOL 258056458eadaee17595ba8e1a6e0ab744af193126bb7e2d4027e3a6605585155d4cac184a22130e8538a0d63ef7dbdcdc9a530e5bf4f0162b6f509251dcea79
+MISC ChangeLog-2015 4947 SHA256 5211dfd76c7a82add297453b20d824be96af47bbf446cd48c19b8f3ca6660ef7 SHA512 79f5bad3c92bed784320506764627c2b050f6245be4605f620b1cf0ab4671a981b057a6e92d46268dc9c9b00c561d790f056b90fb44c162bb3888c8a108591e2 WHIRLPOOL a707338eac115ccd1a573cf8dad0ef36f446c81979266d0a79b81f93cbc483855d17a317762d8a31b80eabef15184fc40275461f8898a660d60b3d1a65aaebb7
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-analyzer/nikto/metadata.xml b/net-analyzer/nikto/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-analyzer/nikto/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/net-analyzer/nikto/nikto-1.36.ebuild b/net-analyzer/nikto/nikto-1.36.ebuild
new file mode 100644
index 000000000000..aff9ac3ee287
--- /dev/null
+++ b/net-analyzer/nikto/nikto-1.36.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Web Server vulnerability scanner"
+HOMEPAGE="http://www.cirt.net/Nikto2"
+SRC_URI="http://www.cirt.net/source/nikto/ARCHIVE/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc sparc x86"
+RDEPEND="dev-lang/perl
+ >=net-analyzer/nmap-3.00
+ ssl? ( dev-libs/openssl )"
+IUSE="ssl"
+
+src_compile() {
+ sed -i -e 's:config.txt:nikto.conf:' \
+ -i -e 's:\$CFG{configfile}="nikto.conf":\$CFG{configfile}="/etc/nikto/nikto.conf":' \
+ nikto.pl
+
+ mv config.txt nikto.conf
+
+ sed -i -e 's:^#NMAP:NMAP:' \
+ -i -e 's:^PROXYHOST:#PROXYHOST:' \
+ -i -e 's:^PROXYPORT:#PROXYPORT:' \
+ -i -e 's:^PROXYUSER:#PROXYUSER:' \
+ -i -e 's:^PROXYPASS:#PROXYPASS:' \
+ -i -e 's:# PLUGINDIR=/usr/local/nikto/plugins:PLUGINDIR=/usr/share/nikto/plugins:' \
+ nikto.conf
+
+ cp "${S}/docs/nikto-${PV}.man" "${WORKDIR}/${PN}.1"
+}
+
+src_install() {
+ insinto /etc/nikto
+ doins nikto.conf
+
+ dodir /usr/bin
+ dobin nikto.pl
+ dosym /usr/bin/nikto.pl /usr/bin/nikto
+
+ dodir /usr/share/nikto/plugins
+ insinto /usr/share/nikto/plugins
+ doins plugins/*
+
+ cd docs
+ dodoc CHANGES.txt LICENSE.txt README_plugins.txt nikto_usage.txt
+ dohtml nikto_usage.html
+ doman "${WORKDIR}/${PN}.1"
+}
diff --git a/net-analyzer/nikto/nikto-2.1.5.ebuild b/net-analyzer/nikto/nikto-2.1.5.ebuild
new file mode 100644
index 000000000000..3ee500e7eeb1
--- /dev/null
+++ b/net-analyzer/nikto/nikto-2.1.5.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="Web Server vulnerability scanner"
+HOMEPAGE="http://www.cirt.net/Nikto2"
+SRC_URI="http://www.cirt.net/nikto/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="ssl"
+
+RDEPEND="
+ dev-lang/perl
+ >=net-libs/libwhisker-2.5
+ ssl? (
+ dev-libs/openssl:0=
+ dev-perl/Net-SSLeay
+ )"
+
+src_prepare() {
+ sed -i -e 's:config.txt:nikto.conf:g' plugins/* || die
+ sed -i -e 's:/etc/nikto.conf:/etc/nikto/nikto.conf:;
+ s:# EXECDIR=/usr/local/nikto:EXECDIR=/usr/share/nikto:;
+ s:# use LW2:use LW2:;
+ s:require "$CONFIGFILE{'\''PLUGINDIR'\''}/LW2.pm":# require "$CONFIGFILE{'\''PLUGINDIR'\''}/LW2.pm":;' nikto.pl || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ insinto "/etc/${PN}"
+ doins "${PN}.conf"
+
+ mv "${PN}.pl" "${PN}" || die
+ dobin "${PN}"
+
+ insinto /usr/share/nikto
+ doins -r plugins templates databases
+
+ local NIKTO_PMS=(
+ JSON-PP.pm
+ )
+
+ einfo "Symlinking ${NIKTO_PMS[@]} to ${VENDOR_LIB}"
+
+ for _PM in "${NIKTO_PMS[@]}"; do
+ _TARGET="${VENDOR_LIB}/${_PM}"
+ dosym "/usr/share/nikto/plugins/${_PM}" "${_TARGET}"
+ done
+
+ dodoc docs/*.txt
+ dohtml docs/nikto_manual.html
+}