X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-qa0-f44.google.com (mail-qa0-f44.google.com [209.85.216.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D90C9DC00CA for ; Mon, 17 Nov 2014 19:38:57 +0000 (UTC) Received: by mail-qa0-f44.google.com with SMTP id i13so1859800qae.3 for ; Mon, 17 Nov 2014 11:38:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=vW02cqNl7Z3Z4NNUUuNHWVGFs8t6jmYIfRHpQBnyOMU=; b=uKYThl0jQPGhsdMuNrGqXtOKE7fwxinfD4BNs3ppta206dDz6eOoCkUuELP4uePuc5 tyjkwB6/s91jOqVtOmKUi/bF1z0ZI5DZncqVTqVgrhv79aSZlLAcXJHY0lAxMoDQ0QL1 IjbT0a0EP7ws2jrGfTybrFQQLoLsenIS7AFIU1DFXqB8MHNuRkD18x/gLC9K2Qny7/u4 rBAl49VqGKeDOLHqOZ5c0vLZOTG4XLJq530tx+Qq4BZIV/JL/0aUS5qxnZzoBw0zdDh1 IL96waDZgDKNnCeWzU8lSXcGnG8iRa+CDNwhOZ6ovFaBwiKM+a3kcMtXuznwRHY5Muad aq9A== X-Received: by 10.140.92.134 with SMTP id b6mr35993747qge.25.1416253137163; Mon, 17 Nov 2014 11:38:57 -0800 (PST) Received: from alacerda-x86-lab.bethel.jw.org ([186.233.140.3]) by mx.google.com with ESMTPSA id i1sm35095188qaz.28.2014.11.17.11.38.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Nov 2014 11:38:56 -0800 (PST) From: Fabio Aires To: alpine-devel@lists.alpinelinux.org Cc: Fabio Aires Subject: [alpine-devel] [PATCH] testing/nikto: new aport Date: Mon, 17 Nov 2014 19:38:46 +0000 Message-Id: <1416253126-22185-1-git-send-email-fabioaires.web@gmail.com> X-Mailer: git-send-email 1.8.2.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/nikto/APKBUILD | 49 ++++++++++++++++++++++++++ testing/nikto/nikto.conf.base | 82 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 131 insertions(+) create mode 100644 testing/nikto/APKBUILD create mode 100644 testing/nikto/nikto.conf.base diff --git a/testing/nikto/APKBUILD b/testing/nikto/APKBUILD new file mode 100644 index 0000000..d0baff1 --- /dev/null +++ b/testing/nikto/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Fabio Aires +# Maintainer: Fabio Aires +pkgname=nikto +pkgver=2.1.5 +pkgrel=0 +pkgdesc="A web application security scanner" +url="https://www.cirt.net/Nikto2" +arch="noarch" +license="GPL" +depends="perl nmap openssl" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="" +source="https://www.cirt.net/$pkgname/$pkgname-$pkgver.tar.gz + nikto.conf.base" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/etc/nikto "$pkgdir"/usr/bin + cp "$srcdir"/nikto.conf.base "$pkgdir"/etc/nikto.conf + cp -r databases "$pkgdir"/etc/nikto + cp -r templates "$pkgdir"/etc/nikto + cp -r plugins "$pkgdir"/etc/nikto + cp -r docs "$pkgdir"/etc/nikto + install -m 755 nikto.pl "$pkgdir"/usr/bin +} + +md5sums="efcc98a918becb77471ee9a5df0a7b1e nikto-2.1.5.tar.gz +39d5e2e923344a3624e94d2b17408988 nikto.conf.base" +sha256sums="0e672a6a46bf2abde419a0e8ea846696d7f32e99ad18a6b405736ee6af07509f nikto-2.1.5.tar.gz +f24b1e9007156a1700b32daa763f104423b4dde3a42bd74bc2deef6244953374 nikto.conf.base" +sha512sums="b6a1e7277a501055a4693d2e7179801bda0566350f3718cd169c3baf61003a936b14e9a4ba59f3597a83be8ef509953fdae546ec57e487a33b2b3efbabe84b67 nikto-2.1.5.tar.gz +d6e349bd20428e45d6ef49db91630e1c6d65d4cf2107a1f4c58e697d8fceeb428fb90c247fbbf8a8ad6f9d27672790d07040079b94c2480dd77dc445fccd6f69 nikto.conf.base" diff --git a/testing/nikto/nikto.conf.base b/testing/nikto/nikto.conf.base new file mode 100644 index 0000000..3f17dfe --- /dev/null +++ b/testing/nikto/nikto.conf.base @@ -0,0 +1,82 @@ +######################################################################################################### +# CONFIG STUFF +# $Id: config.txt 94 2009-01-21 22:47:25Z deity $ +######################################################################################################### + +# default command line options, can't be an option that requires a value. used for ALL runs. +# CLIOPTS=-g -a + +# ports never to scan +SKIPPORTS=21 111 + +# User-Agent variables: + # @VERSION - Nikto version + # @TESTID - Test identifier + # @EVASIONS - List of active evasions +USERAGENT=Mozilla/5.00 (Nikto/@VERSION) (Evasions:@EVASIONS) (Test:@TESTID) + +# RFI URL. This remote file should return a phpinfo call, for example: +# You may use the one below, if you like. +RFIURL=http://cirt.net/rfiinc.txt? + +# IDs never to alert on (Note: this only works for IDs loaded from db_tests) +#SKIPIDS= + +# The DTD +NIKTODTD=docs/nikto.dtd + +# the default HTTP version to try... can/will be changed as necessary +DEFAULTHTTPVER=1.0 + +# Nikto can submit updated version strings to CIRT.net. It won't do this w/o permission. You should +# send updates because it makes the data better for everyone ;) *NO* server specific information +# such as IP or name is sent, just the relevant version information. +# UPDATES=yes - ask before each submission if it should send +# UPDATES=no - don't ask, don't send +# UPDATES=auto - automatically attempt submission *without prompting* +UPDATES=yes + +# Warning if MAX_WARN OK or MOVED responses are retrieved +MAX_WARN=20 + +# Prompt... if set to 'no' you'll never be asked for anything. Good for automation. +#PROMPTS=no + +# cirt.net : set the IP so that updates can work without name resolution -- just in case +CIRT=174.142.17.165 + +# Proxy settings -- still must be enabled by -useproxy +#PROXYHOST=127.0.0.1 +#PROXYPORT=8080 +#PROXYUSER=proxyuserid +#PROXYPASS=proxypassword + +# Cookies: send cookies with all requests +# Multiple can be set by separating with a semi-colon, e.g.: +# "cookie1"="cookie value";"cookie2"="cookie val" +#STATIC-COOKIE= + +# The below allows you to vary which HTTP methods are used to check whether an HTTP(s) server +# is running. Some web servers, such as the autopsy web server do not implement the HEAD method +CHECKMETHODS=HEAD GET + +# If you want to specify the location of any of the files, specify them here +EXECDIR=/etc/nikto # Location of Nikto +PLUGINDIR=/etc/nikto/plugins # Location of plugin dir +DBDIR=/etc/nikto/databases # Location of plugin dir +TEMPLATEDIR=/etc/nikto/templates # Location of tempmlate dir +DOCDIR=/etc/nikto/docs # Location of docs dir + +# Default plugin macros +@@MUTATE=dictionary;subdomain +@@DEFAULT=@@ALL;-@@MUTATE;tests(report:500) + +#Choose SSL libs +# Options: +# SSLeay - use Net::SSLeay +# SSL - use Net::SSL +# auto - automatically choose whats available +# (SSLeay wins if both are available) +LW_SSL_ENGINE=auto + + -- 1.8.2.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---