2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: Web uygulama güvenliği için modüler pentest aracı.
|
2017-06-28 13:59:18 +02:00
|
|
|
|
# URL: https://www.arachni-scanner.com
|
2017-12-22 23:10:01 +01:00
|
|
|
|
# Paketçi: aydinyakar
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Gerekler: ruby23 ruby23-bundler
|
2017-12-22 22:59:36 +01:00
|
|
|
|
# Grup: güvenlik
|
2017-06-28 13:59:18 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=arachni
|
|
|
|
|
surum=1.5.1
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=()
|
2017-06-28 13:59:18 +02:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then
|
|
|
|
|
git clone http://github.com/Arachni/$isim.git $DERLEME_KAYNAKDIZIN/$isim
|
2017-06-28 13:59:18 +02:00
|
|
|
|
else
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $DERLEME_KAYNAKDIZIN/$isim
|
2017-06-28 13:59:18 +02:00
|
|
|
|
git pull
|
|
|
|
|
cd -
|
|
|
|
|
fi
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
git clone "$DERLEME_KAYNAKDIZIN/$isim" "$PKG/usr/share/$isim"
|
|
|
|
|
cd "$PKG/usr/share/$isim"
|
2017-06-28 13:59:18 +02:00
|
|
|
|
progs="arachni arachni_console arachni_multi arachni_reporter arachni_restore"
|
|
|
|
|
progs="${progs} arachni_rest_server arachni_rpc arachni_rpcd"
|
|
|
|
|
progs="$progs arachni_rpcd_monitor arachni_script"
|
|
|
|
|
mkdir -p "$PKG/usr/bin"
|
2017-10-28 14:10:23 +02:00
|
|
|
|
mkdir -p "$PKG/usr/share/$isim"
|
|
|
|
|
install -Dm644 -t "$PKG/usr/share/doc/$isim" *.md
|
|
|
|
|
install -Dm644 LICENSE.md "$PKG/usr/share/licenses/$isim/LICENSE.md"
|
2017-06-28 13:59:18 +02:00
|
|
|
|
for prog in ${progs}
|
|
|
|
|
do
|
|
|
|
|
cat > "$PKG/usr/bin/${prog//_/-}" << EOF
|
|
|
|
|
#!/bin/sh
|
2017-10-28 14:10:23 +02:00
|
|
|
|
exec ruby-2.3 /usr/share/$isim/bin/$prog "\$@"
|
2017-06-28 13:59:18 +02:00
|
|
|
|
EOF
|
|
|
|
|
done
|
|
|
|
|
chmod +x "$PKG"/usr/bin/*
|
|
|
|
|
}
|