Missing package dependencies make w3af unable to run

Bug #1096580 reported by shankao
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
w3af (Debian)
Fix Released
Unknown
w3af (Ubuntu)
Fix Released
Medium
Lacrimosa

Bug Description

w3af has some missing package dependencies. Whenever I try to run it from command line, I get this self-explanatory message:

shankao@maldita:~$ w3af
Your python installation needs the following packages:
    scapy

On debian based systems:
    sudo apt-get install python-scapy

Additional information:
    pybloomfiltermmap is a required dependency in *nix systems, in order to install it please run the following commands: sudo apt-get install python2.6-dev
    sudo easy_install pybloomfiltermmap
shankao@maldita:~$

Trying it from the graphical environment is even worse, as nothing seems to happen (no visual feedback)

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: w3af 1.1svn5547-1
ProcVersionSignature: Ubuntu 3.7.0-7.15-generic 3.7.0
Uname: Linux 3.7.0-7-generic x86_64
ApportVersion: 2.7-0ubuntu2
Architecture: amd64
Date: Sun Jan 6 20:40:19 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-11-25 (42 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120627)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_SG:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_SG.UTF-8
 SHELL=/bin/bash
SourcePackage: w3af
UpgradeStatus: Upgraded to raring on 2012-11-25 (42 days ago)

Related branches

Revision history for this message
shankao (shankao) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in w3af (Ubuntu):
status: New → Confirmed
Revision history for this message
Bård Artur Gjertsen (gjertsenba) wrote :

I had to install these packages manually after installing w3af:
python-scapy
libpython2.7-dev

and when trying to install pybloomfiltermmap with easy_install i got an error... openssl/evp.h was missing... so i had to get libssl-dev

now the program runs

Revision history for this message
dc (darkcharl) wrote :

Also, it should mention the right package dep, python2.7-dev.

Revision history for this message
ozirus (caliskanfurkan) wrote :

If you install python2.7-dev, it still need python2.6-dev and also pybloomfiltermmap

Lacrimosa (pielacrimosa)
Changed in w3af (Ubuntu):
assignee: nobody → Lacrimosa (pielacrimosa)
assignee: Lacrimosa (pielacrimosa) → nobody
assignee: nobody → Lacrimosa (pielacrimosa)
Revision history for this message
pr.nizar (pr-nizar-deactivatedaccount) wrote :

This bug affects Trusty too. Missing dependencies are python-scapy and python-pybloomfiltermmap:

sudo apt-get install python-scapy python-pybloomfiltermmap

I've posted a merge proposal that fixes this "bug". (https://code.launchpad.net/~pr-nizar/w3af/bug-1096580/+merge/248110)

tags: added: trusty
Changed in w3af (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Changed in w3af (Debian):
status: Unknown → Confirmed
Revision history for this message
Rovanion (rovanion-luckey) wrote :

This bug is present in Ubuntu 14.04. Related AskUbuntu thread: http://askubuntu.com/questions/656944/w3af-does-not-start-on-ubuntu-14-04/656945#656945

Changed in w3af (Debian):
status: Confirmed → Fix Committed
Changed in w3af (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Logan Rosen (logan) wrote :

This bug was fixed in the package w3af - 1.1svn5547-1.1

---------------
w3af (1.1svn5547-1.1) unstable; urgency=medium

  * Non-maintainer upload from debconf15
  * Replace python-support by dh-python
  * AddRediff existing dependency patch into new
    remove_pybloomfilter_import.patch and apply it (closes: #684722)
  * Add python-lxml and python-scapy to Depends as the package doesn't
    work without them

 -- Paul Gevers <email address hidden> Tue, 18 Aug 2015 17:20:42 +0200

Changed in w3af (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
varun (varun-bajaj) wrote :
Download full text (3.1 KiB)

Hi,

I faced lot of issues while installing and running W3af on Ubuntu and the I've come up with the following steps that will help in easy installation.

1. Install Ubuntu 14.04.5 on VMware player
2. Note: the dependencies package should be installed of the same version as mentioned when the dependency is missing. Installing latest version might create error. Install the latest version (like new version of pip) only when it is required.
3. Note: if uninstall fails or is unable to connect to proxy or url, give proxy command
               a. –proxy=<proxy address>:<port number>
4. Open terminal and enter the following commands
               a. sudo -sH
                        cd /opt

                        apt-get update
                        apt-get install git build-essential

                       git clone https://github.com/andresriancho/w3af.git

                       apt-get install python2.7-dev python-setuptools python-pip

              b. (Or -> apt-get install python2.7-dev python-setuptools python-pip –proxy=<proxy address>:<port number> )

5. run the following command
             a. cd w3af/
             b. ./w3af_console
6. You might be asked to upgrade to latest version of pip
7. Check the version of pip by typing : pip –version
8. Download the latest version of pip ( tar.gz file)
             a. Extract the file
             b. Go to terminal and go inside the pip folder
             c. Enter sudo –sH ( command for root)
             d. Enter : python setup.py install
             e. This will install latest version of pip
              f. ( or download get-pip.py file and run this file in cmd)
9. Now enter the command :
             a. ./w3af_console
10. Then we try to run the w3af_console command, which will most likely fail because of missing dependencies. This command will generate a helper script at /tmp/w3af_dependency_install.sh that when run will install all the required dependencies.
11. Now check the file : w3af_dependency_install.sh for all the missing dependencies
12. Copy those command and run them in terminal ( inside opt folder , with –proxy<port address and number> mentioned)
13. Install the missing dependencies
14. Write command : python ez_setup.py install.
              a. this is for installing the setup tools. Latest version
15. download vulndb – installation error.
16. Inside vulndb folder. Open the setup.py file and change setuptools_git-1.1 to setuptools-git-1.1
17. Install setuptools-git-1.1. give command: python setup.py install (inside the setup tools git folder)
18. Now install vulndb. give cmd- python setup.py install ( inside vulndb folder)
19. W3af is ready to run
20. Now go inside w3af folder. Enter command : ./w3af_console.
21. No missing dependencies will be there.
22. Command:
              a. pip freeze | grep futures --this command will show the version of futures installed.
             b. Output of the above cmd: futures==2.1.5
             c. Pip freeze -- this command will show all the list of dependencies installed with the specific version.
23. For running: ./w3af_gui , you might be missing a package or dependency. Install those and then run again.

...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.