Merge pull request #180 from yakar/master

w3af 1.6.54 paketlendi.
This commit is contained in:
Milli İşletim Sistemi (Milis Linux) 2017-07-02 16:50:03 +03:00 committed by GitHub
commit 712bfd5a98
5 changed files with 93 additions and 0 deletions

View File

@ -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}
}

View File

@ -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;

View File

@ -0,0 +1,3 @@
#!/bin/sh
pip2 install -r /usr/share/w3af/w3af/tests/requirements.txt

View File

@ -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
}

View File

@ -0,0 +1,5 @@
#!/bin/sh
pip2 install pysqlite
pip2 install lxml
pip2 install pycurl