Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (26 sloc) 1.02 KB
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=1
pkgname=csrftester
pkgver=1.0
pkgrel=3
pkgdesc="The OWASP CSRFTester Project attempts to give developers the ability to test their applications for CSRF flaws."
url="http://www.owasp.org/index.php/Category:OWASP_CSRFTester_Project"
groups=('archstrike' 'archstrike-webapps')
license=('LGPL')
depends=('java-runtime')
arch=(any)
source=(http://www.owasp.org/images/0/08/CSRFTester-${pkgver}.zip)
sha512sums=('9166a74980724dd6daadd747f91464a82b9a7ec9e071237270b8c27f8c6f62d99dd269877adaca6979808b55cd0041fb844c4a6689ef7cbb5a986fae25eb698e')
package() {
cd "${srcdir}/CSRFTester-${pkgver}" || exit
install -d ${pkgdir}/usr/bin
install -d ${pkgdir}/usr/share/csrftester
cp -r ./* ${pkgdir}/usr/share/csrftester/
rm ${pkgdir}/usr/share/csrftester/run.bat
cat > ${pkgdir}/usr/bin/csrftester << EOF
#!/bin/sh
cd /usr/share/csrftester
java -classpath ".:lib/concurrent.jar:OWASP-CSRFTester-1.0.jar" org.owasp.csrftester.CSRFTester
EOF
chmod +x ${pkgdir}/usr/bin/csrftester
}
You can’t perform that action at this time.