diff --git a/talimatname/genel/w3af/talimat b/talimatname/genel/w3af/talimat new file mode 100644 index 000000000..d0abec497 --- /dev/null +++ b/talimatname/genel/w3af/talimat @@ -0,0 +1,43 @@ +# Description: Web Uygulama Atak ve Denetim Aracı. +# URL: http://w3af.sourceforge.net/ +# Packager: yakar (aydin@komutan.org) +# Depends on: python-pip python-gtksourceview2 python-yaml python-gtk gtk2 sqlite libxml2 libxslt yaml + +name=w3af +version=1.6.54 +release=1 +source=(https://github.com/andresriancho/w3af/archive/${version}.tar.gz w3af.desktop requirements.txt) + + +build() { + cd "$SRC/w3af-$version" + + # 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} +} diff --git a/talimatname/genel/w3af/w3af.desktop b/talimatname/genel/w3af/w3af.desktop new file mode 100644 index 000000000..75ffd3aea --- /dev/null +++ b/talimatname/genel/w3af/w3af.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Exec=/usr/bin/w3af-gui +Icon=/usr/share/w3af/core/ui/gui/data/w3af_icon.png +Type=Application +Terminal=false +MultipleArgs=false +Name=w3af +GenericName=w3af +StartupNotify=false +Categories=Application;Network; diff --git a/talimatname/genel/w3af/w3af.kur-kos b/talimatname/genel/w3af/w3af.kur-kos new file mode 100644 index 000000000..e0b367596 --- /dev/null +++ b/talimatname/genel/w3af/w3af.kur-kos @@ -0,0 +1,3 @@ +#!/bin/sh + +pip2 install -r /usr/share/w3af/w3af/tests/requirements.txt \ No newline at end of file diff --git a/talimatname/genel/wfuzz/talimat b/talimatname/genel/wfuzz/talimat new file mode 100644 index 000000000..d780f3503 --- /dev/null +++ b/talimatname/genel/wfuzz/talimat @@ -0,0 +1,31 @@ +# Description: Web uygulamalarındaki link verilmeyen kaynakları deneme/yanılma (fuzzer) yolu ile bulan araç. +# URL: https://github.com/xmendez/wfuzz +# Packager: yakar (aydin@komutan.org) +# Depends on: python-pip python-xml + +name=wfuzz +version=2.1.5 +release=1 +source=(https://github.com/xmendez/$name/archive/v$version.tar.gz) + +build() { + cd "$SRC/$name-$version" + + mkdir -p "$PKG/usr/bin" + mkdir -p "$PKG/usr/share/$name" + + install -Dm644 README "$PKG/usr/share/doc/$name/README" + install -Dm644 LICENSE "$PKG/usr/share/licenses/$name/LICENSE" + + rm LICENSE README README.md setup.py + + cp -a * "$PKG/usr/share/$name" + + cat > "$PKG/usr/bin/$name" << EOF +#!/bin/sh +cd /usr/share/$name +exec python2 $name.py "\$@" +EOF + + chmod a+x $PKG/usr/bin/$name +} diff --git a/talimatname/genel/wfuzz/wfuzz.kur-kos b/talimatname/genel/wfuzz/wfuzz.kur-kos new file mode 100644 index 000000000..3773fc97e --- /dev/null +++ b/talimatname/genel/wfuzz/wfuzz.kur-kos @@ -0,0 +1,5 @@ +#!/bin/sh + +pip2 install pysqlite +pip2 install lxml +pip2 install pycurl