talimat 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Tanım: Web Uygulama Atak ve Denetim Aracı.
  2. # URL: http://w3af.sourceforge.net/
  3. # Paketçi: yakar_(aydin@komutan.org)
  4. # Gerekler: python-pip python-gtksourceview2 python-yaml python-gtk gtk2 sqlite libxml2 libxslt yaml
  5. # Grup: güvenlik
  6. isim=w3af
  7. surum=1.6.54
  8. devir=1
  9. kaynak=(https://github.com/andresriancho/w3af/archive/${surum}.tar.gz
  10. w3af.desktop)
  11. derle() {
  12. cd "$SRC/w3af-$surum"
  13. # Enforce python2
  14. sed -i -e 's|#!\s*/usr/bin/python[^\d.]*$|#!/usr/bin/python2|' \
  15. -e 's|#!\s*/usr/bin/env python[^\d.]*$|#!/usr/bin/env python2|' \
  16. $(find . -name '*.py') w3af_{console,gui}
  17. # Remove dependency checks.
  18. sed -i 's/dependency_check()/#&/' w3af_{console,gui}
  19. mkdir -p "$PKG/usr/bin"
  20. mkdir -p "$PKG/usr/share/w3af"
  21. mkdir -p "$PKG/usr/share/applications"
  22. cp --no-preserve=ownership -a * "$PKG/usr/share/w3af"
  23. install -Dm644 "$SRC/w3af.desktop" "$PKG/usr/share/applications"
  24. cat > "$PKG/usr/bin/w3af" << EOF
  25. #!/bin/sh
  26. exec python2 /usr/share/w3af/w3af_console "\$@"
  27. EOF
  28. cat > "$PKG/usr/bin/w3af-gui" << EOF
  29. #!/bin/sh
  30. exec python2 /usr/share/w3af/w3af_gui "\$@"
  31. EOF
  32. chmod +x "$PKG/usr/share/w3af"/w3af_{console,gui} \
  33. "$PKG/usr/bin"/{w3af,w3af-gui}
  34. }