2017-06-28 13:59:18 +02:00
|
|
|
|
# Description: Web uygulama güvenliği için modüler pentest aracı.
|
|
|
|
|
# URL: https://www.arachni-scanner.com
|
|
|
|
|
# Packager: yakar (aydin@komutan.org)
|
2017-07-27 22:54:40 +02:00
|
|
|
|
# Depends on: ruby23 ruby23-bundler
|
2017-06-28 13:59:18 +02:00
|
|
|
|
|
|
|
|
|
name=arachni
|
|
|
|
|
version=1.5.1
|
|
|
|
|
release=1
|
|
|
|
|
source=()
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
if [ ! -d $DERLEME_KAYNAKDIZIN/$name ];then
|
|
|
|
|
git clone http://github.com/Arachni/$name.git $DERLEME_KAYNAKDIZIN/$name
|
|
|
|
|
else
|
|
|
|
|
cd $DERLEME_KAYNAKDIZIN/$name
|
|
|
|
|
git pull
|
|
|
|
|
cd -
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
git clone "$DERLEME_KAYNAKDIZIN/$name" "$PKG/usr/share/$name"
|
|
|
|
|
|
|
|
|
|
cd "$PKG/usr/share/$name"
|
|
|
|
|
|
|
|
|
|
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/$name"
|
|
|
|
|
|
|
|
|
|
install -Dm644 -t "$PKG/usr/share/doc/$name" *.md
|
|
|
|
|
install -Dm644 LICENSE.md "$PKG/usr/share/licenses/$name/LICENSE.md"
|
|
|
|
|
|
|
|
|
|
for prog in ${progs}
|
|
|
|
|
do
|
|
|
|
|
cat > "$PKG/usr/bin/${prog//_/-}" << EOF
|
|
|
|
|
#!/bin/sh
|
2017-07-27 22:54:40 +02:00
|
|
|
|
exec ruby-2.3 /usr/share/$name/bin/$prog "\$@"
|
2017-06-28 13:59:18 +02:00
|
|
|
|
EOF
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
chmod +x "$PKG"/usr/bin/*
|
|
|
|
|
}
|