milis/talimatname/genel/a/arachni/talimat

44 lines
1.1 KiB
Plaintext
Raw Normal View History

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-10-27 20:46:27 +02:00
# Paketçi: yakar (aydin@komutan.org)
# Gerekler: ruby23 ruby23-bundler
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"
2017-06-28 13:59:18 +02:00
2017-10-28 14:10:23 +02:00
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"
2017-06-28 13:59:18 +02:00
2017-10-28 14:10:23 +02:00
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/*
}