2018-06-09 00:06:58 +02:00
|
|
|
|
# Tanım: Web Uygulama Atak ve Denetim Aracı.
|
|
|
|
|
# URL: http://w3af.sourceforge.net/
|
2018-07-26 08:44:15 +02:00
|
|
|
|
# Paketçi: yakar_(aydin@komutan.org)
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# Gerekler: python-pip python-gtksourceview2 python-yaml python-gtk gtk2 sqlite libxml2 libxslt yaml
|
2018-07-26 08:44:15 +02:00
|
|
|
|
# Grup: güvenlik
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
isim=w3af
|
|
|
|
|
surum=1.6.54
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://github.com/andresriancho/w3af/archive/${surum}.tar.gz
|
|
|
|
|
w3af.desktop)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
derle() {
|
|
|
|
|
cd "$SRC/w3af-$surum"
|
|
|
|
|
|
|
|
|
|
# Enforce python2
|
|
|
|
|
sed -i -e 's|#!\s*/usr/bin/python[^\d.]*$|#!/usr/bin/python2|' \
|
|
|
|
|
-e 's|#!\s*/usr/bin/env python[^\d.]*$|#!/usr/bin/env python2|' \
|
|
|
|
|
$(find . -name '*.py') w3af_{console,gui}
|
|
|
|
|
|
|
|
|
|
# Remove dependency checks.
|
|
|
|
|
sed -i 's/dependency_check()/#&/' w3af_{console,gui}
|
|
|
|
|
|
|
|
|
|
mkdir -p "$PKG/usr/bin"
|
|
|
|
|
mkdir -p "$PKG/usr/share/w3af"
|
|
|
|
|
mkdir -p "$PKG/usr/share/applications"
|
|
|
|
|
|
|
|
|
|
cp --no-preserve=ownership -a * "$PKG/usr/share/w3af"
|
|
|
|
|
|
|
|
|
|
install -Dm644 "$SRC/w3af.desktop" "$PKG/usr/share/applications"
|
|
|
|
|
|
|
|
|
|
cat > "$PKG/usr/bin/w3af" << EOF
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
exec python2 /usr/share/w3af/w3af_console "\$@"
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
cat > "$PKG/usr/bin/w3af-gui" << EOF
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
exec python2 /usr/share/w3af/w3af_gui "\$@"
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
chmod +x "$PKG/usr/share/w3af"/w3af_{console,gui} \
|
|
|
|
|
"$PKG/usr/bin"/{w3af,w3af-gui}
|
|
|
|
|
}
|