I am not an expert, I have pasted what I did. But basically, w3af failed to work, so I removed/pruged ad then followed the install instructions on the W3AF website for Kali. Could someone tell me where I have gone wrong. The error looks like it's something to do with Python, the first errors were lines 99 etc... then after I removed/installed the error lines changed.
root@xxx:~/w3af# apt-get remove --purge w3af
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
ETC..... (had to remove a number of lines as there is a limited as to how much I can paste into this forum thread)
root@xxx:~/w3af# apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@xxx:~/w3af# git clone https://github.com/andresriancho/w3af.git
fatal: destination path 'w3af' already exists and is not an empty directory.
root@xxx:~/w3af# ls
circle.yml doc extras profiles scripts tools w3af w3af_console w3af_gui
root@xxx:~/w3af# ./w3af_console
Checking if a new version is available in our git repository. Please wait...
Your installation is already on the latest available version.
Traceback (most recent call last):
File "./w3af_console", line 167, in <module>
_main()
File "./w3af_console", line 163, in _main
sys.exit(main())
File "./w3af_console", line 158, in main
return console.sh()
File "/root/w3af/w3af/core/ui/console/console_ui.py", line 145, in sh
self._context = rootMenu(name, self, self._w3af)
File "/root/w3af/w3af/core/ui/console/rootMenu.py", line 68, in __init__
'kb': kbMenu
File "/root/w3af/w3af/core/ui/console/util.py", line 26, in mapDict
fun(p, dct[p])
File "/root/w3af/w3af/core/ui/console/menu.py", line 110, in addChild
name, self._console, self._w3af, self, *params)
File "/root/w3af/w3af/core/ui/console/exploit.py", line 47, in __init__
plugin = self._w3af.plugins.get_plugin_inst('attack', plugin_name)
File "/root/w3af/w3af/core/controllers/core_helpers/plugins.py", line 244, in get_plugin_inst
plugin_inst = factory('w3af.plugins.%s.%s' % (plugin_type, plugin_name))
File "/root/w3af/w3af/core/controllers/misc/factory.py", line 49, in factory
raise BaseFrameworkException(msg % (module_name, e))
w3af.core.controllers.exceptions.BaseFrameworkExce ption: There was an error while importing w3af.plugins.attack.dav: "[Errno 99] Cannot assign requested address".
root@xxx:~/w3af# /tmp/w3af_dependency_install.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsqlite3-dev is already the newest version.
libxslt1-dev is already the newest version.
libyaml-dev is already the newest version.
python2.7-dev is already the newest version.
libssl-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied (use --upgrade to upgrade): PyGithub==1.21.0 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): phply==0.9.1 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): chardet==2.1.1 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): futures==2.1.5 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): pyOpenSSL==0.13.1 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): scapy-real==2.2.0-dev in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): msgpack-python==0.2.4 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): ply in /usr/lib/python2.7/dist-packages (from phply==0.9.1)
Cleaning up...
root@xxx:~/w3af# ./w3af
bash: ./w3af: Is a directory
root@xxx:~/w3af# ./w3af_gui
Your python installation needs the following modules to run w3af:
xdot
After installing any missing operating system packages, use pip to install the remaining modules:
sudo pip install xdot==0.6
A script with these commands has been created for you at /tmp/w3af_dependency_install.sh
According to Kali's documentation [0] in order to avoid breaking the packaged w3af version you should run the following commands:
cd ~
apt-get install -y python-pip
pip install --upgrade pip
git clone https/github.com/andresriancho/w3af.git
cd w3af
./w3af_console
. /tmp/w3af_dependency_install.sh
[0] http://www.kali.org/kali-monday/blee...-repositories/
root@xxx:~/w3af# /tmp/w3af_dependency_install.sh
Downloading/unpacking xdot==0.6
Downloading xdot-0.6.tar.gz
Running setup.py (path:/tmp/pip_build_root/xdot/setup.py) egg_info for package xdot
Installing collected packages: xdot
Found existing installation: xdot 0.5
Uninstalling xdot:
Successfully uninstalled xdot
Running setup.py install for xdot
Installing xdot script to /usr/local/bin
Successfully installed xdot
Cleaning up...
root@xxx:~/w3af# ./w3af_gui
Starting w3af, running on:
Python version: 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2]
GTK version: 2.24.10
PyGTK version: 2.24.0
w3af version:
w3af - Web Application Attack and Audit Framework
Version: 1.6.0.5
Revision: 880379b54b - 26 Sep 2014 18:32
Branch: master
Local changes: No
Author: Andres Riancho and the w3af team.
Traceback (most recent call last):
File "./w3af_gui", line 110, in <module>
_main()
File "./w3af_gui", line 106, in _main
sys.exit(main())
File "./w3af_gui", line 101, in main
gui_main(profile, doupdate)
File "/root/w3af/w3af/core/ui/gui/main.py", line 929, in main
MainApp(profile, do_upd)
File "/root/w3af/w3af/core/ui/gui/main.py", line 409, in __init__
self.pcbody = pluginconfig.PluginConfigBody(self, self.w3af)
File "/root/w3af/w3af/core/ui/gui/pluginconfig.py", line 624, in __init__
self.pan = self._buildpan()
File "/root/w3af/w3af/core/ui/gui/pluginconfig.py", line 644, in _buildpan
self.w3af, "standard", self.config_panel)
File "/root/w3af/w3af/core/ui/gui/pluginconfig.py", line 245, in __init__
if self._getEditablePlugin(plugin, plugintype):
File "/root/w3af/w3af/core/ui/gui/pluginconfig.py", line 301, in _getEditablePlugin
plugin = self.w3af.plugins.get_plugin_inst(ptype, pname)
File "/root/w3af/w3af/core/controllers/core_helpers/plugins.py", line 244, in get_plugin_inst
plugin_inst = factory('w3af.plugins.%s.%s' % (plugin_type, plugin_name))
File "/root/w3af/w3af/core/controllers/misc/factory.py", line 49, in factory
raise BaseFrameworkException(msg % (module_name, e))
BaseFrameworkException: There was an error while importing w3af.plugins.infrastructure.http_vs_https_dist: "[Errno 99] Cannot assign requested address".
root@xxx:~/w3af#