summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD48
-rwxr-xr-xjoomscan.sh2
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f04b9ba3aa7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = joomscan
+ pkgdesc = Detects file inclusion, sql injection, command execution vulnerabilities of a target Joomla! web site.
+ pkgver = 2012_03_10
+ pkgrel = 1
+ url = http://joomscan.sourceforge.net/
+ arch = any
+ license = LGPL3
+ makedepends = unzip
+ depends = perl-switch
+ depends = perl-www-mechanize
+ noextract = joomscan-latest.zip
+ source = joomscan.sh
+ source = http://sourceforge.net/projects/joomscan/files/joomscan/2012-03-10/joomscan-latest.zip
+ sha256sums = 67de695ba7db7ef5864bd0c888dc9578de6a7139d4286ed4bc6ba42a486cda32
+ sha256sums = 7edbcf069fe60b032cd273d06de1f8c40459c65ae8e604602e8f60150f08ec6e
+
+pkgname = joomscan
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..06610481a9f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
+# Contributor: /dev/rs0 <rs0@secretco.de.com>
+
+set -u
+pkgname='joomscan'
+pkgver='2012_03_10'
+pkgrel='1'
+pkgdesc='Detects file inclusion, sql injection, command execution vulnerabilities of a target Joomla! web site.'
+arch=('any')
+url="http://${pkgname}.sourceforge.net/"
+license=('LGPL3')
+
+depends=('perl-switch' 'perl-www-mechanize')
+makedepends=('unzip')
+
+_srcdir="${pkgname}-${pkgver}"
+source=(
+ 'joomscan.sh'
+ "http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver//_/-}/${pkgname}-latest.zip"
+)
+noextract=("${source[1]##*/}")
+sha256sums=('67de695ba7db7ef5864bd0c888dc9578de6a7139d4286ed4bc6ba42a486cda32'
+ '7edbcf069fe60b032cd273d06de1f8c40459c65ae8e604602e8f60150f08ec6e')
+
+prepare() {
+ set -u
+ unzip -oaq -d "${_srcdir%%/*}" "${source[1]##*/}"
+ set +u
+}
+
+package() {
+ set -u
+ cd "${_srcdir}"
+ install -Dpm0755 "${pkgname}.pl" "${srcdir}/${pkgname}.sh" -t "${pkgdir}/usr/share/${pkgname}/"
+ install -Dpm0644 "${pkgname}"{db,db-info}.txt -t "${pkgdir}/usr/share/${pkgname}"
+
+ mv 'report' "${pkgdir}/usr/share/${pkgname}"
+ install -d "${pkgdir}/usr/share/doc/${pkgname}"
+ mv 'doc'/* "${pkgdir}/usr/share/doc/${pkgname}"
+
+ install -d "${pkgdir}/usr/bin"
+ ln -sf "/usr/share/${pkgname}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
+
+ install -d "${pkgdir}/usr/share/${pkgname}/doc"
+ touch "${pkgdir}/usr/share/${pkgname}/doc/AGREEMENT"
+ set +u
+}
+set +u
diff --git a/joomscan.sh b/joomscan.sh
new file mode 100755
index 00000000000..b1b811b3161
--- /dev/null
+++ b/joomscan.sh
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+cd /usr/share/joomscan && ./joomscan.pl $*