milis/talimatname/genel/a/arachni/talimat

39 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Web uygulama güvenliği için modüler pentest aracı.
# URL: https://www.arachni-scanner.com
# Paketçi: aydinyakar
# Gerekler: ruby23 ruby23-bundler
# Grup: güvenlik
isim=arachni
surum=1.5.1
devir=1
kaynak=()
derle() {
if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then
git clone http://github.com/Arachni/$isim.git $DERLEME_KAYNAKDIZIN/$isim
else
cd $DERLEME_KAYNAKDIZIN/$isim
git pull
cd -
fi
git clone "$DERLEME_KAYNAKDIZIN/$isim" "$PKG/usr/share/$isim"
cd "$PKG/usr/share/$isim"
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"
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"
for prog in ${progs}
do
cat > "$PKG/usr/bin/${prog//_/-}" << EOF
#!/bin/sh
exec ruby-2.3 /usr/share/$isim/bin/$prog "\$@"
EOF
done
chmod +x "$PKG"/usr/bin/*
}