milis/talimatname/genel/a/arachni/talimat

52 lines
1.3 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
2018-11-06 05:56:48 +01:00
# Paketçi: yakar
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
2018-11-06 05:56:48 +01:00
devir=2
2017-10-28 14:10:23 +02:00
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/*
2018-11-06 05:56:48 +01:00
# desktop
mkdir -p "$PKG/usr/share/applications/"
cat > $PKG/usr/share/applications/$isim.desktop << BASLA
[Desktop Entry]
Name=Arachni
Exec=sh -c "arachni;${SHELL:-bash}"
Terminal=true
Icon=arachni
Type=Application
Categories=Network;X-Komutan;
Version=1.0
BASLA
2017-06-28 13:59:18 +02:00
}