andresriancho / w3af

w3af: web application attack and audit framework, the open source web vulnerability scanner.
http://w3af.org/
4.58k stars 1.22k forks source link

Cannot run w3af after install in Fedora 26 #16122

Open izauddin opened 7 years ago

izauddin commented 7 years ago

Hi,

I tried to run w3af_gui after cloning it from git. But it said I have to installed python-pip and python-devel. Both this package has been install in my OS. How to make w3af working ? When I try to run either the console or gui it give the following messages . I'm installing w3af using this command => git clone --depth 1 https://github.com/andresriancho/w3af.git

====================== [w3af]# ./w3af_gui w3af's requirements are not met, one or more third-party libraries need to be installed.

On fedora systems please install the following operating system packages before running the pip installer: sudo yum install python-pip python-devel

A script with these commands has been created for you at /tmp/w3af_dependency_install.sh [root@devops w3af]# ./w3af_console w3af's requirements are not met, one or more third-party libraries need to be installed.

On fedora systems please install the following operating system packages before running the pip installer: sudo yum install python-pip python-devel

A script with these commands has been created for you at /tmp/w3af_dependency_install.sh [w3af]#

========================

My Linux distribution release is => Fedora release 26 (Twenty Six) My Python version is => Python 2.7.13

pipfreeze.txt w3af_dependency_install.sh.txt

Rgds Din

izauddin commented 7 years ago

Solved this

I change the w3af/w3af/core/controllers/dependency_check/platforms/fedora.py

CORE_SYSTEM_PACKAGES = ['python-pip', 'python-devel', 'python2-setuptools' to CORE_SYSTEM_PACKAGES = ['python2-pip', 'python2-devel', 'python2-setuptools'

I change w3af/w3af/core/controllers/dependency_check/platforms/requirements.py PIPDependency('OpenSSL', 'pyOpenSSL', '0.15.1'), to PIPDependency('OpenSSL', 'pyOpenSSL', '16.2.0'),

Able to run the gui

dksh commented 6 years ago

@izauddin wrong way to requirements.py right way is w3af/w3af/core/controllers/dependency_check/requirements.py However I can't run w3af_gui, got: ./w3af_gui Traceback (most recent call last): File "./w3af_gui", line 110, in _main() File "./w3af_gui", line 106, in _main sys.exit(main()) File "./w3af_gui", line 100, in main from w3af.core.ui.gui.main import main as gui_main File "/root/Documents/soft/w3af/w3af/core/ui/gui/main.py", line 54, in from w3af.core.ui.gui import scanrun, helpers, profiles, compare File "/root/Documents/soft/w3af/w3af/core/ui/gui/scanrun.py", line 27, in import webkit File "/usr/lib64/python2.7/site-packages/webkit/init.py", line 21, in import webkit ImportError: libwebkitgtk-1.0.so.0: cannot open shared object file: No such file or directory

But I can run w3af_console