View Issue Details

IDProjectCategoryView StatusLast Update
0003692Kali LinuxKali Package Bugpublic2016-10-25 15:01
Reporterasketsus Assigned Tosbrun  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version2016.2 
Fixed in Version2017.1 
Summary0003692: w3af is not launched
Description

When I try to launch w3af, I receive this error:

root@kali-virtualbox:~# w3af
It seems that your Python installation does not have all the modules required by the w3af framework. For more information about how to install and debug dependency issues please browse to http://docs.w3af.org/en/latest/install.html
Traceback (most recent call last):
File "/usr/bin/w3af", line 151, in <module>
_main()
File "/usr/bin/w3af", line 147, in _main
sys.exit(main())
File "/usr/bin/w3af", line 142, in main
return console.sh()
File "/usr/share/w3af/w3af/core/ui/console/console_ui.py", line 145, in sh
self._context = rootMenu(name, self, self._w3af)
File "/usr/share/w3af/w3af/core/ui/console/rootMenu.py", line 70, in init
'kb': kbMenu
File "/usr/share/w3af/w3af/core/ui/console/util.py", line 26, in mapDict
fun(p, dct[p])
File "/usr/share/w3af/w3af/core/ui/console/menu.py", line 110, in addChild
name, self._console, self._w3af, self, *params)
File "/usr/share/w3af/w3af/core/ui/console/exploit.py", line 47, in init
plugin = self._w3af.plugins.get_plugin_inst('attack', plugin_name)
File "/usr/share/w3af/w3af/core/controllers/core_helpers/plugins.py", line 247, in get_plugin_inst
plugin_inst = factory('w3af.plugins.%s.%s' % (plugin_type, plugin_name))
File "/usr/share/w3af/w3af/core/controllers/misc/factory.py", line 62, in factory
import(module_name)
File "/usr/share/w3af/w3af/plugins/attack/sqlmap.py", line 37, in <module>
from w3af.plugins.attack.db.sqlmap_wrapper import Target, SQLMapWrapper
File "/usr/share/w3af/w3af/plugins/attack/db/sqlmap_wrapper.py", line 33, in <module>
from w3af.core.controllers.daemons.proxy import Proxy
File "/usr/share/w3af/w3af/core/controllers/daemons/proxy/init.py", line 1, in <module>
from .handler import ProxyHandler
File "/usr/share/w3af/w3af/core/controllers/daemons/proxy/handler.py", line 25, in <module>
from netlib.odict import ODictCaseless
ImportError: No module named odict

I've reproduced this error in two differents Kali installations.

Steps To Reproduce

apt-get update
apt-get upgrade
apt-get dist-upgrade
w3af

Additional Information

If I try to install python-netlib, apt removes w3af installation. In the same way, if I try to install w3af with python-netlib installed, it removes python-netlib.

Activities

asketsus

asketsus

2016-10-25 06:35

reporter   ~0006074

root@kali-virtualbox:~# w3af -v
w3af - Web Application Attack and Audit Framework
Version: 1.7.6
Revision: unknown
Distribution: Kali Linux Rolling
Branch: unknown
Local changes: No
Author: Andres Riancho and the w3af team.

asketsus

asketsus

2016-10-25 06:38

reporter   ~0006075

root@kali-virtualbox:~# apt-get install w3af
Reading package lists... Done
Building dependency tree
Reading state information... Done
w3af is already the newest version (1.6.54+git20160429-3kali1).
w3af set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

rhertzog

rhertzog

2016-10-25 07:00

administrator   ~0006076

the neblib python modules is now provided by mitmproxy (on which w3af-console depends) so the installation conflict is expected. But somehow there must be some version mismatch between the two explaining this error.

Thanks for the report, we will look into it.

sbrun

sbrun

2016-10-25 15:01

manager   ~0006078

the new mitmproxy (version 0.18.1) is not compatible with w3af. I included in w3af the old version of mitmproxy (mitmproxy, netlib and pathod).
New version of w3af is 1.6.54+git20160429+1-0kali1

Issue History

Date Modified Username Field Change
2016-10-25 06:32 asketsus New Issue
2016-10-25 06:35 asketsus Note Added: 0006074
2016-10-25 06:38 asketsus Note Added: 0006075
2016-10-25 07:00 rhertzog Note Added: 0006076
2016-10-25 07:00 rhertzog Assigned To => sbrun
2016-10-25 07:00 rhertzog Status new => assigned
2016-10-25 15:01 sbrun Note Added: 0006078
2016-10-25 15:01 sbrun Status assigned => resolved
2016-10-25 15:01 sbrun Resolution open => fixed
2016-10-25 15:01 sbrun Fixed in Version => 2017.1