# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=minimysqlator pkgver=0.5 pkgrel=5 groups=('blackarch' 'blackarch-exploitation') pkgdesc='A multi-platform application used to audit web sites in order to discover and exploit SQL injection vulnerabilities.' arch=('any') url='http://www.scrt.ch/en/attack/downloads/mini-mysqlat0r' license=('GPL') depends=('java-environment') source=("http://www.scrt.ch/outils/mms/mms_${pkgver//./}.jar" 'http://www.scrt.ch/outils/mms/common_tables.txt') sha512sums=('c784336f8d21cb7b9be770e6dc07bafebbc77647' 'c792e6c326e695d3c790a94ad81a3107881048a7') package() { install -dm 755 "$pkgdir/usr/bin" install -Dm 644 mms_05.jar "$pkgdir/usr/share/$pkgname/mms.jar" install -Dm 644 common_tables.txt \ "$pkgdir/usr/share/$pkgname/common_tables.txt" cat > "$pkgdir/usr/bin/$pkgname" << EOF #!/bin/sh cd /usr/share/$pkgname/ exec java -jar /usr/share/$pkgname/mms.jar \$@ EOF chmod +x "$pkgdir/usr/bin/$pkgname" }