mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
network/w3af: Updated for version 1.0.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
0c09c39864
commit
da775d6f1e
9 changed files with 73 additions and 24 deletions
|
@ -1,7 +1,8 @@
|
||||||
w3af is a Web Application Attack and Audit Framework. The project's goal is to
|
w3af is a Web Application Attack and Audit Framework. The project's goal is
|
||||||
create a framework to find and exploit web application vulnerabilities that is
|
to create a framework to find and exploit web application vulnerabilities
|
||||||
easy to use and extend.
|
that is easy to use and extend.
|
||||||
|
|
||||||
The console app requires fpconst, pygoogle, nltk, SOAPpy, pyPdf, BeautifulSoup,
|
The console app requires SOAPpy, nltk, pyOpenSSL, lxml, pysvn and scapy.
|
||||||
PyOpenSSL, json-py, scapy, SocksiPy, and python-cluster.
|
The graphical interface requires graphviz and pygtksourceview.
|
||||||
The graphical interface requires graphviz and xdot.
|
|
||||||
|
Take a look at README.SLACKWARE for additional information.
|
||||||
|
|
8
network/w3af/README.SLACKWARE
Normal file
8
network/w3af/README.SLACKWARE
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Starting from w3af 1.0-stable, auto updates are automatically enabled. They
|
||||||
|
will not work unless you start w3af as root, however there is an optional cron
|
||||||
|
script to keep the distribution up to date. It is distributed inside the
|
||||||
|
/usr/doc/w3af-${VERSION} directory and it's called "w3afupdate.sh", there also
|
||||||
|
is a logrotate config file called "w3afupdate.logrotate" which can be useful.
|
||||||
|
You should also edit ~/.w3af/startup.conf and set:
|
||||||
|
auto-update = false
|
||||||
|
inside [STARTUP_CONFIG].
|
|
@ -5,7 +5,7 @@
|
||||||
# make exactly 11 lines for the formatting to be correct. It's also
|
# make exactly 11 lines for the formatting to be correct. It's also
|
||||||
# customary to leave one space after the ':'.
|
# customary to leave one space after the ':'.
|
||||||
|
|
||||||
|-----handy-ruler-------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
w3af: w3af (Web Application Attack and Audit Framwork)
|
w3af: w3af (Web Application Attack and Audit Framwork)
|
||||||
w3af:
|
w3af:
|
||||||
w3af: w3af is a Web Application Attack and Audit Framework. The project's
|
w3af: w3af is a Web Application Attack and Audit Framework. The project's
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for w3af.
|
# Slackware build script for w3af.
|
||||||
|
|
||||||
# Copyright 2009-2010 Marco Bonetti <sid77@slackware.it>
|
# Copyright 2009-2011 Marco Bonetti <sid77@slackware.it>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -23,12 +23,12 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=w3af
|
PRGNAM=w3af
|
||||||
VERSION=${VERSION:-1.0_rc3}
|
VERSION=${VERSION:-1.0}
|
||||||
ARCH=noarch
|
ARCH=noarch
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
SRCVERSION=$(echo $VERSION | tr _ -)
|
SRCVERSION="1.0-stable"
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
@ -45,7 +45,12 @@ mkdir -p $TMP $PKG $OUTPUT
|
||||||
# Install w3af in /opt
|
# Install w3af in /opt
|
||||||
mkdir -p $PKG/opt
|
mkdir -p $PKG/opt
|
||||||
tar xvf $CWD/${PRGNAM}-${SRCVERSION}.tar.bz2 -C $PKG/opt
|
tar xvf $CWD/${PRGNAM}-${SRCVERSION}.tar.bz2 -C $PKG/opt
|
||||||
cd $PKG/opt/$PRGNAM
|
# Version the installation directory to allow easier upgrades
|
||||||
|
( cd $PKG/opt
|
||||||
|
mv $PRGNAM $PRGNAM-$VERSION
|
||||||
|
ln -sf $PRGNAM-$VERSION $PRGNAM
|
||||||
|
)
|
||||||
|
cd $PKG/opt/$PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find . \
|
find . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
@ -53,22 +58,34 @@ find . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
# Remove extlib: users do not need w3af's dependencies sources
|
# We can't remove extlib anymore: the autoupdate feature (very similar to
|
||||||
rm -r extlib
|
# Metasploit Framework own autoupdate feature) will break down as it is
|
||||||
|
# subversion based
|
||||||
|
#
|
||||||
|
## Remove extlib: users do not need w3af's dependencies sources
|
||||||
|
#rm -r extlib
|
||||||
|
|
||||||
# Add launchers in /usr/bin
|
# Add launchers in /usr/bin
|
||||||
install -Dm0755 $CWD/w3af_console $PKG/usr/bin/w3af_console
|
mkdir -p $PKG/usr/bin
|
||||||
install -Dm0755 $CWD/w3af_gui $PKG/usr/bin/w3af_gui
|
( cd $PKG/usr/bin
|
||||||
|
cat $CWD/w3af_console > w3af_console
|
||||||
|
cat $CWD/w3af_gui > w3af_gui
|
||||||
|
chmod 755 w3af_*
|
||||||
|
)
|
||||||
|
|
||||||
# Every useful doc is included inside the w3af/readme folder, just copy over the
|
# Every useful doc is included inside the w3af/readme folder, just copy over the
|
||||||
# GPL and README
|
# GPL and README and the cron scripts
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cd $PKG/opt/$PRGNAM/readme/
|
( cd $PKG/opt/$PRGNAM-$VERSION/readme/
|
||||||
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
)
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
cat $CWD/w3afupdate.sh > $PKG/usr/doc/$PRGNAM-$VERSION/w3afupdate.sh
|
||||||
|
cat $CWD/w3afupdate.logrotate > $PKG/usr/doc/$PRGNAM-$VERSION/w3afupdate.logrotate
|
||||||
|
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="w3af"
|
PRGNAM="w3af"
|
||||||
VERSION="1.0-rc3"
|
VERSION="1.0"
|
||||||
HOMEPAGE="http://w3af.sourceforge.net/"
|
HOMEPAGE="http://w3af.sourceforge.net/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/project/w3af/w3af/w3af%201.0-rc3%20%5Bmoyogui%5D/w3af-1.0-rc3.tar.bz2"
|
DOWNLOAD="http://downloads.sourceforge.net/project/w3af/w3af/w3af%201.0-stable/w3af-1.0-stable.tar.bz2"
|
||||||
MD5SUM="0a6e803636ab3b46ec950c07e6d4baf5"
|
MD5SUM="4ac1fb2cfcbbefb8c0caa813dd822723"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Marco Bonetti"
|
MAINTAINER="Marco Bonetti"
|
||||||
EMAIL="sid77@slackware.it"
|
EMAIL="sid77@slackware.it"
|
||||||
APPROVED="dsomero"
|
APPROVED="Niels Horn"
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
( cd /opt/w3af
|
( cd /opt/w3af
|
||||||
./w3af_console $@
|
./w3af_console $@
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
( cd /opt/w3af
|
( cd /opt/w3af
|
||||||
./w3af_gui $@
|
./w3af_gui $@
|
||||||
)
|
)
|
||||||
|
|
10
network/w3af/w3afupdate.logrotate
Normal file
10
network/w3af/w3afupdate.logrotate
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/var/log/w3afupdate.log {
|
||||||
|
daily
|
||||||
|
rotate 5
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
create 0644 root root
|
||||||
|
}
|
||||||
|
|
7
network/w3af/w3afupdate.sh
Normal file
7
network/w3af/w3afupdate.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
( cd /opt/w3af
|
||||||
|
svn up >> /var/log/w3afupdate.log 2>&1
|
||||||
|
)
|
Loading…
Reference in a new issue