Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (32 sloc) 1.02 KB
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=1
pkgname=csrft-git
pkgver=r32.17146bb
pkgrel=3
pkgdesc="In few words, this is a simple HTTP Server in NodeJS that will communicate with the clients (victims) and send them payload that will be executed using JavaScript"
arch=('any')
url="https://github.com/PaulSec/CSRFT"
license=('GPL3')
depends=('nodejs')
makedepends=('git')
groups=('archstrike')
provides=('scrft')
source=("${pkgname}"::'git+https://github.com/PaulSec/CSRFT.git')
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}" || exit
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/${pkgname}" || exit
install -dm755 "${pkgdir}/usr/bin/"
install -dm755 "${pkgdir}/usr/share/csrft"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/csrft/LICENSE"
cp -aR --no-preserve=ownership ./* "${pkgdir}/usr/share/csrft"
cat > ${pkgdir}/usr/bin/csrft<<EOF
#!/bin/sh
cd /usr/share/csrft
node ./server.js
EOF
chmod +x "${pkgdir}/usr/bin/csrft"
}
You can’t perform that action at this time.