Open MacBillings opened 2 years ago
I think w3af use python 2.7
arch linux no longer has pip2 does not work with python3+
Yes, it does. Actually there are some informational messages:
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/bleeding-edge-kali-repositories/
A script with these commands has been created for you at /tmp/w3af_dependency_install.sh
You just need to follow the process. I recommend using a virtual environment and Python 2.7 to run it.
Once you have followed the process you just need to run the /tmp/w3af_dependency_install.sh
As the others have commented, w3af relies on python2, which doesn't exist as a supported language in most distros by now. We've been working on a python3 port - you can see that here: https://github.com/w4af/w4af
hey i have the same error and i want to know how did you fixed it?
@samkit511 check out the project at https://github.com/w4af/w4af . That would be my recommendation.
Please help. When I try to use the ./w3af_console comand I get back the error message: (root💀kali)-[~/w3af] └─# ./w3af_console Traceback (most recent call last): File "/root/w3af/./w3af_console", line 12, in
from w3af.core.controllers.dependency_check.dependency_check import dependency_check
File "/root/w3af/w3af/core/controllers/dependency_check/dependency_check.py", line 26, in
from w3af.core.data.db.startup_cfg import StartUpConfig
File "/root/w3af/w3af/core/data/db/startup_cfg.py", line 22, in
import ConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
distro: latest version stable version of kali linux pip freeze output: └─# pip freeze 255 ⨯ aadict==0.2.3 adblockparser==0.7 adns===1.4-py1 AdvancedHTTPServer==2.2.0 aiocmd==0.1.2 aioconsole==0.3.1 aiodns==3.0.0 aiofiles==0.6.0 aiohttp==3.8.1 aiohttp-apispec==2.2.1 aiohttp-jinja2==1.2.0 aiohttp-security==0.4.0 aiohttp-session==2.9.0 aiomultiprocess==0.8.0 aioredis==1.3.1 aiosignal==1.2.0 aiosqlite==0.16.1 aiowinreg==0.0.3 ajpy==0.0.4 alabaster==0.7.12 alembic==1.7.1.dev0 altgraph==0.17.2 androguard==3.4.0a1 aniso8601==9.0.1 anyio==3.4.0 anyjson==0.3.3 apispec==5.1.1 apispec-webframeworks==0.5.2 appdirs==1.4.4 APScheduler==0.0.0 argcomplete==1.12.3 argon2-cffi==21.1.0 arjun==2.1.41 arrow==1.2.1 artifacts==20211012 asciitree==0.3.3 asgiref==3.4.1 asn1crypto==1.4.0 asset==0.6.13 async-timeout==4.0.1 asysocks==0.0.2 attrs==21.2.0 autobahn==21.11.1 Automat==20.2.0 awscli==1.21.9 Babel==2.8.0 backcall==0.2.0 backdoor-factory==0.0.0 backoff==1.10.0 base58==1.0.3 basemap==1.2.1 bcrypt==3.2.0 beautifulsoup4==4.10.0 bidict==0.21.3 binwalk==2.3.2 bleach==4.1.0 blinker==1.4 bluepy==1.3.0 boltons==21.0.0 boto3==1.19.9 botocore==1.22.9 bottle==0.12.19 Bottleneck==1.3.2 Brlapi==0.8.3 Brotli==1.0.9 cairocffi==1.2.0 capstone==4.0.2 catfish==4.16.3 cbor==1.0.0 censys==2.0.9 Cerberus==1.3.2 certifi==2020.6.20 cffi==1.15.0 cfscrape==1.9.5 chardet==4.0.0 charset-normalizer==2.0.6 cheroot==8.5.2+ds1 CherryPy==18.6.1 cherrypy-cors==1.6 chirp==0.3.0.dev0 cli-helpers==2.2.0 click==8.0.3 click-plugins==1.1.1 colorama==0.4.4 colorlog==6.6.0 commonmark==0.9.1 configobj==5.0.6 constantly==15.1.0 crackmapexec==5.1.7.dev0 crcelk==1.3 cryptography==3.4.8 cssselect==1.1.0 cssselect2==0.4.1 cupshelpers==1.0 cx-Oracle==7.1.0 cycler==0.11.0 Cython==0.29.24 dataclasses-json==0.5.6 dbus-python==1.2.18 debtags==2.1 decorator==4.4.2 defusedxml==0.7.1 Deprecated==1.2.13 deprecation==2.0.7 dfdatetime==20210509 dfvfs==20201219 dfwinreg==20201006 dhcpig==0.0.0 dicttoxml==1.7.4 dirsearch==0.4.2 distorm3==3.4.1 distro==1.6.0 Django==3.2.10 dnsgen==1.0.4 dnslib==0.9.16 dnspython==2.1.0 dnstwist==20211204 docker==5.0.3 docopt==0.6.2 docutils==0.17.1 donut-shellcode==0.9.2 dropbox==10.10.0 dsnap==1.0.0 dtfabric==20210731 easygui==0.98.1 EasyProcess==0.3 ecdsa==0.18.0b1 elasticsearch==7.16.2 email-validator==1.1.2 entrypoints==0.3 et-xmlfile==1.0.1 evdev==1.4.0 ExifRead==2.3.2 fake-useragent==0.1.11 faraday-agent-parameters-types==1.0.3 faraday-client==1.1.0 faraday-plugins==1.5.9 faradaysec==3.19.0 fastapi==0.70.1 feedparser==6.0.8 fierce==1.5.0 filebytes==0.9.12 filedepot==0.5.2 filteralchemy==0.1.0 fire==0.4.0 flasgger==0.9.5 Flask==2.0.1 Flask-Classful==0.14.1 Flask-Cors==3.0.9 Flask-KVSession-fork==0.6.3 Flask-Limiter==1.0.1 Flask-Login==0.5.0 Flask-Mail==0.9.1 Flask-Principal==0.4.0 Flask-RESTful==0.3.9 Flask-Security-Too==4.0.0 Flask-SocketIO==5.0.1 Flask-SQLAlchemy==2.5.1 Flask-WTF==0.14.3 flatbuffers===1.12.1-git20200711.33e2d80-dfsg1-0.6 freezegun==0.3.15 frozenlist==1.2.0 future==0.18.2 fuzzywuzzy==0.18.0 GDAL==3.4.1 GeoIP==1.3.2 geoip2==2.9.0 geojson==2.5.0 gevent==21.8.0 gitdb==4.0.9 GitPython==3.1.24 globre==0.1.5 goofile==1.6 google==2.0.3 gpg===1.16.0-unknown graphene==2.1.9 graphene-sqlalchemy==2.1.2 graphql-core==2.2.1 graphql-relay==2.0.1 graphviz==0.14.2 greenlet==1.1.2 grokevt==0.5 gvm-tools==21.10.0 gyp==0.1 h11==0.12.0 h2==4.0.0 hashID==3.1.4 hiredis==1.0.1 hpack==4.0.0 html2text==2020.1.16 html5lib==1.1 httpagentparser==1.9.1 httplib2==0.20.2 humanize==0.0.0 hupper==1.10.3 hypercorn==0.13.2 hyperframe==6.0.0 hyperlink==21.0.0 icalendar==4.0.3 icmplib==1.2.2 idna==3.2 imageio==2.4.1 imagesize==1.3.0 impacket==0.9.24 importlib-metadata==4.6.4 incremental==17.5.0 infinity==1.5 iniconfig==0.0.0 instaloader==4.4.5 invoke==1.4.1 ipaddr==2.2.0 ipdb==0.13.9 iptools==0.6.1 ipwhois==0.15.1 IPy==1.1 ipykernel==6.6.1 ipython==7.31.0 ipython_genutils==0.2.0 ipywidgets==6.0.0 itsdangerous==2.0.1 ivre==0.9.16 jaraco.classes==3.2.1 jaraco.collections==3.4.0 jaraco.functools==3.4.0 jaraco.text==3.6.0 jdcal==1.0 jedi==0.18.0 Jinja2==3.0.1 jmespath==0.10.0 jq==1.2.1 jsonschema==3.2.0 jupyter-client==6.1.12 jupyter-core==4.9.1 jupyterlab-pygments==0.1.2 kaitaistruct==0.9 kali-tweaks==2021.4.0 KismetCaptureBtGeiger==2021.7.1 KismetCaptureFreaklabsZigbee==2018.7.0 KismetCaptureRtl433==2020.10.1 KismetCaptureRtladsb==2020.10.1 KismetCaptureRtlamr==2020.10.1 kiwisolver==1.3.2 ldap3==2.8.1 ldapdomaindump==0.9.3 lightdm-gtk-greeter-settings==1.2.2 limiter==0.1.2 limits==1.5.1 llvmlite==0.38.0rc1 lml==0.0.9 logutils==0.3.3 louis==3.19.0 lsassy==2.1.2 lxml==4.6.4 lz4==3.1.3+dfsg macholib==1.15.2 Mako==1.1.3 Markdown==3.3.6 MarkupSafe==2.0.1 marshmallow==3.13.0 marshmallow-enum==1.5.1 marshmallow-sqlalchemy==0.26.1 matplotlib==3.3.4 matplotlib-inline==0.1.3 maxminddb==2.0.3 mechanize==0.4.7 mercurial==6.0.1 metaconfig==0.1.4a1 minidump==0.0.12 minikerberos==0.2.0 mistune==0.8.4 mitmproxy==6.0.2 mnemonic==0.19 mock==4.0.3 more-itertools==8.10.0 more-termcolor==1.1.3 msgpack==1.0.2 msldap==0.2.10 multidict==5.1.0 mypy-extensions==0.4.3 mysqlclient==1.4.6 nassl==4.0.0 nbclient==0.5.6 nbconvert==6.3.0 nbformat==5.1.3 neo4j==1.7.0.dev0 neobolt==1.7.17 neotime==1.7.4 nest-asyncio==1.5.4 netaddr==0.8.0 netifaces==0.11.0 networkx==2.5 nose==1.3.7 notebook==6.4.5 nplusone==1.0.0 ntlm-auth==1.4.0 numba==0.52.0 numexpr==2.8.1 numpy==1.21.5 oauthlib==3.1.1 odfpy==1.4.2 olefile==0.46 onboard==1.4.1 openpyxl==3.0.9 ospd==21.4.4 ospd-openvas==21.4.3 osrframework==0.20.1 packaging==21.3 pacu==1.1.0 pandas==1.3.4 pandocfilters==1.5.0 paramiko==2.8.1 parse==1.19.0 parso==0.8.1 passlib==1.7.4 passwordmeter==0.1.8 Paste==3.5.0 PasteDeploy==2.1.1 PasteScript==2.0.2 patator==0.9 pathspec==0.9.0 pbkdf2==1.3 pbr==5.6.0 pcapy==0.11.5.dev0 pefile==2021.9.3 pem==19.1.0 pendulum==2.1.2 pexpect==4.8.0 pgcli==3.2.0 pgspecial==1.11.10 phonenumbers==8.12.1 pickleshare==0.7.5 Pillow==8.4.0 plaso==20201007 plaster==1.0 plaster-pastedeploy==0.5 plecost==1.1.2 pluggy==0.13.0 pluginbase==1.0.1 ply==3.11 portend==3.0.0 prettytable==0.0.0 priority==1.3.0 prometheus-client==0.9.0 promise==2.3 prompt-toolkit==3.0.24 protobuf==3.12.4 psutil==5.8.0 psycopg2==2.9.2 psycopg2cffi==2.8.1 ptyprocess==0.7.0 publicsuffix2==2.20191221 publicsuffixlist==0.7.10 pwncat==0.1.1 py==1.10.0 py-altdns==1.0.0 py-ubjson==0.16.1 pyasn1==0.4.8 pyasn1-modules==0.2.1 pycairo==1.20.1 pycares==4.1.2 pycparser==2.21 pycryptodomex==3.11.0 pycups==2.0.1 pycurl==7.44.1 pydantic==1.9.0 PyDispatcher==2.0.5 pydot==1.4.2 pydotplus==2.0.2 pyee==7.0.2 pyenchant==3.2.0 pyexcel==0.5.14 pyexcel-io==0.5.18 pyexcel-ods==0.5.6 pyexcel-text==0.2.7.1 pyexcel-xls==0.5.8 pyexcel-xlsx==0.5.5 pyExploitDb==0.2.0 pyfiglet==0.8.post0 pygccxml==2.2.1 pygeoip==0.3.2 pygexf==0.2.2 Pygments==2.7.1 PyGObject==3.42.0 pygraphviz==1.7 PyHamcrest==2.0.2 pyinotify==0.9.6 PyInstaller==3.5+498e6ee058 PyJWT==2.1.0 pylnk3==0.4.2 pyminifier==2.1 pymongo==3.11.0 pymssql==2.2.2 PyMySQL==1.0.2 PyNaCl==1.4.0 pynput==1.7.5 pyodbc==4.0.32 PyOpenGL==3.1.5 pyOpenSSL==21.0.0 pyotp==2.3.0 pyparsing==2.4.7 PyPDF2==1.26.0 pyperclip==1.8.2 pypng==0.0.20 pyppeteer==0.2.5 pyproj==3.3.0 pypsrp==0.5.0 pypykatz==0.3.7 PyQRCode==1.2.1 PyQt-Qwt==1.2.2 PyQt5==5.15.6 PyQt5-sip==12.9.0 pyqtgraph==0.12.3 pyquery==1.2.9 pyramid==2.0 pyregfi==1.0.1.0 PyRIC==0.1.6.4 pyrsistent==0.15.5 pyrtlsdr==0.2.91 pyserial==3.5b0 pyShodan==0.2.3 pyshp==2.1.3 pysmb==1.1.19 pysmbc==1.0.23 pysmi==0.3.2 pysnmp==4.4.12 PySocks==1.7.1 pyspnego==0.1.5 pytest==6.2.5 python-apt==2.3.0+b1 python-dateutil==2.8.1 python-debian==0.1.42 python-docx==0.8.11 python-dotenv==0.19.2 python-emailahoy3==0.1.3 python-engineio==4.0.0 python-gvm==21.10.0 python-ldap==3.2.0 python-Levenshtein==0.12.2 python-libnmap==0.7.2 python-magic==0.4.24 python-magic-ahupp==0.4.13 python-memcached==1.58 python-multipart==0.0.5 python-nmap==0.6.1 python-pam==1.8.4 python-pptx==0.6.18 python-snappy==0.5.3 python-socketio==5.0.3 python-xlib==0.29 PyTrie==0.4.0 pytsk3==20200117 pytz==2021.3 pytzdata==2020.1 pyusb==1.2.1.post1 PyUserInput==0.1.11 PyVirtualDisplay==2.2 pywebcopy==6.3.0 pywerview==0.2.0 pyxdg==0.27 PyYAML==5.4.1 pyzmq==22.3.0 qrcode==7.3.1 Quamash==0.6.1 quark-engine==21.4.3 Quart==0.14.1 recommonmark==0.6.0 redis==3.5.3 reportlab==3.6.2 repoze.lru==0.7 requests==2.25.1 requests-file==1.5.1 requests-futures==1.0.0 requests-ntlm==1.1.0 requests-oauthlib==1.3.0 requests-toolbelt==0.9.1 responses==0.13.4 retrying==1.3.3 rfcat==1.9.5 rich==10.16.2 rjsmin==1.1.0 roguehostapd==1.1.2 roman==3.3 ropper==1.12.5 routersploit==3.4.0 Routes==2.5.1 rq==1.10.1 rsa==4.8 rtlsdr-scanner==1.3.2 ruamel.yaml==0.17.16 ruamel.yaml.clib==0.2.6 rule-engine==1.1.0 Rx==3.2.0 s3transfer==0.5.0 scapy==2.4.4 scipy==1.7.1 secure==0.3.0 selenium==4.0.0a1 Send2Trash==1.6.0b1 service-identity==18.1.0 setproctitle==1.2.2 sgmllib3k==1.0.0 sherlock==0.14.0 shodan==1.25.0 simplejson==3.17.5 simplekv==0.13.0 six==1.16.0 slowapi==0.1.4 smmap==5.0.0 smoke-zephyr==2.0.1 sniffio==1.2.0 snowballstemmer==2.2.0 sortedcontainers==2.1.0 soupsieve==2.3.1 speaklater==1.4 specan==0.0.0 Sphinx==4.3.2 sphinx-rtd-theme==1.0.0 spyse-python==2.2.3 SQLAlchemy==1.4.23 sqlalchemy-schemadisplay==1.3 SQLAlchemy-Utc==0.11.0 SQLAlchemy-Utils==0.37.8 sqlparse==0.4.2 ssdeep==3.1 sslyze==5.0.1 starlette==0.16.0 stegcracker==2.1.0 stem==1.8.0 Sublist3r==1.0 svglib==1.1.0 syslog-rfc5424-formatter==1.2.2 tables==3.7.0 tabulate==0.8.9 Tempita==0.5.2 tempora==4.1.2 termcolor==1.1.0 terminado==0.12.1 terminaltables==3.1.0 termineter==1.0.4 testpath==0.5.0 texttable==1.6.3 theHarvester==4.0.3 thrift==0.13.0 tinycss2==1.1.1 tinydb==3.15.2 tld==0.11.11 tldextract==2.2.1 tls-parser==1.2.2 token-bucket==0.3.0 toml==0.10.2 tornado==6.1 torrequest==0.1.0 tqdm==4.57.0 traitlets==5.1.1 translationstring==1.4 tweepy==4.4.0 Twisted==20.3.0 txaio==21.2.1 typing-extensions==3.10.0.2 typing-inspect==0.7.1 tzlocal==2.1 u-msgpack-python==2.3.0 ujson==5.1.0 unicodecsv==0.14.1 Unidecode==1.3.2 urllib3==1.26.5 urwid==2.1.2 uvicorn==0.15.0 uvloop==0.16.0 validators==0.14.2 venusian==3.0.0 vinetto==0.8.0 visvis==1.13.0 w3lib==1.22.0 wafw00f==2.1.0 wapiti3==3.0.4 wcwidth==0.1.9 webargs==8.0.1 webencodings==0.5.1 WebOb==1.8.6 websocket-client==1.2.1 websockets==9.1 websockify==0.10.0 websploit==4.0.4 Werkzeug==2.0.2 wfuzz==3.1.0 wget==3.2 whois==0.8 widgetsnbextension==2.0.0 wifiphisher==1.4 wifite==2.5.8 winacl==0.0.2 witnessme==1.5.0 wordlistraider==1.0 wrapt==1.13.3 wsaccel==0.6.3 wsproto==1.0.0 WTForms==2.2.1 wxPython==4.0.7 xcffib==0.11.1 xdg==5 xlrd==1.2.0 XlsxWriter==3.0.2 xlutils==2.0.0 xlwt==1.3.0 xmltodict==0.12.0 yara-python==4.0.4 yarl==1.6.3 yaswfp==0.9.3 zc.lockfile==2.0 zim==0.74.3 zipp==1.0.0 zlib-wrapper==0.1.3 zope.deprecation==4.4.0 zope.event==4.4 zope.interface==5.4.0
python version 3.9.9