w3af icon indicating copy to clipboard operation
w3af copied to clipboard

Error Installing w3af : Pip is present still cannot run

Open vlakhani28 opened this issue 4 years ago • 5 comments

Hello There,

My Kali has already installed pip but still w3af cannot detect it.

image

Any way of how can i run the w3af console and remove this error

Thanks

vlakhani28 avatar Nov 08 '20 19:11 vlakhani28

follow this video How to Install w3af in Kali Linux Ethical Hacking Part 23

these w3af missing some python dependencies. and its need those dependencies for running. run this command before you run w3af console script.

pip install pybloomfiltermmap==0.3.14 phply==0.9.1 nltk==3.0.1 chardet==3.0.4 tblib==0.2.0 pdfminer==20140328 futures==3.2.0 pyOpenSSL==18.0.0 ndg-httpsclient==0.4.0 pyasn1==0.4.2 lxml==3.4.4 scapy==2.4.0 guess-language==0.2 cluster==1.1.1b3 msgpack==0.5.6 python-ntlm==1.0.1 halberd==0.2.4 darts.util.lru==0.5 Jinja2==2.10 vulndb==0.1.1 markdown==2.6.1 psutil==5.4.8 ds-store==1.1.2 termcolor==1.1.0 mitmproxy==0.13 ruamel.ordereddict==0.4.8 Flask==0.10.1 PyYAML==3.12 tldextract==1.7.2 pebble==4.3.8 acora==2.1 esmre==0.3.1 diff-match-patch==20121119 bravado-core==5.15.0 lz4==1.1.0 vulners==1.3.0 ipaddresses==0.0.2 subprocess32==3.5.4 xdot==0.6

see what happened next :)

siumhossain avatar Nov 08 '20 19:11 siumhossain

Actually all those dependencies have been already installed. I have pip running in my kali machine already.

The issue is that w3af is not able to detect pip which is already installed.

vlakhani28 avatar Nov 08 '20 19:11 vlakhani28

its a bash script then why should you run

python2 w3af_console

its not a python script you should run like this

./w3af_console

siumhossain avatar Nov 08 '20 20:11 siumhossain

Yes that was the first thing i tried but then image

I Googled out some solution for it and came across a solution which said run it with python2 thats how it worked for me

Also it states that python-pip is not available and only python3-pip is available

image

vlakhani28 avatar Nov 09 '20 03:11 vlakhani28

Hi vlakhani28,

The python-pip package is deprecated since python2 is end of life. As the sw requires python-pip for python2, you will continue receiving this error in frustration as no internet sources will help you...I did too.

The solution is much more simple. For any scripts within w3af that generate this error, you will need to edit the script file and remove or comment the dependency check...be sure that you have other dependencies installed first and that you have installed pip for python2 properly (even if the python-pip package cannot be found).

Hope this helps.

zencharcoal avatar May 26 '21 11:05 zencharcoal