Results 1 to 6 of 6

Thread: W3AF fails to load after update/upgrade

  1. #1
    Join Date
    2014-Jan
    Posts
    4

    W3AF fails to load after update/upgrade

    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#

  2. #2
    What your doing isn't recommended: http://www.kali.org/kali-monday/blee...-repositories/
    If you want w3af to be more up-to-date, it is in the bleeding edge repos (along with other tools) ~ https://forums.kali.org/showthread.p...Included-Tools
    This is a Kali-Linux support forum - not general IT/infosec help.

    Useful Commands: OS, Networking, Hardware, Wi-Fi
    Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
    Hardware: Recommended 802.11 Wireless Cards

    Documentation: http://docs.kali.org/ (Offline PDF version)
    Bugs Reporting & Tool Requests: https://bugs.kali.org/
    Kali Tool List, Versions & Man Pages: https://tools.kali.org/

  3. #3
    You really shouldn't be running with bleeding-edge repositories if you don't know what you are doing. Looks like you hosed your Kali installation.

  4. #4
    Join Date
    2014-Jan
    Posts
    4
    Everything else seems to work, but what is the solution without reinstalling to get it back to normal ?

  5. #5
    It's hard to offer you a solution as we don't know the extent of the damage you've done.

  6. #6
    Join Date
    2014-Jan
    Posts
    4
    Right, so I will follow your advice and re-install since I have toasted my install. I have been reviewing the FHS to get an understanding on how Kali fits together so I don't stuff it up again and will try learn about package management. Thanks guys

Similar Threads

  1. Replies: 0
    Last Post: 2020-06-16, 15:41
  2. [w3af error] after update+upgrade
    By Edelweiss in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2016-10-28, 12:36
  3. w3af broken after update on Kali 1.0.7
    By mbeaven in forum General Archive
    Replies: 3
    Last Post: 2014-08-17, 12:33
  4. Replies: 12
    Last Post: 2014-03-14, 22:41

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •