xmendez / wfuzz

Web application fuzzer
http://wfuzz.io
GNU General Public License v2.0
5.94k stars 1.39k forks source link

How to install wfuzz on Windows (ubu env) #344

Open drekbad opened 1 year ago

drekbad commented 1 year ago

In various env, particularly what I was finding with Ubuntu env running on Windows (not via VM, but setting up the way you would to get bash in Windows), I was getting errors for:

but was able to resolve all of this by doing the following:

I used python3.8: pip3 install wfuzz

failed bc of missing "curl-config"

FIXED BY: apt-get install libcurl4-openssl-dev

failed to install pycurl

FIXED BY: sudo apt-get install libssl-dev libcurl4-openssl-dev python3.8-dev

NOTE: python3.8-dev corresponds to installed ver of python

Finally: pip3 install wfuzz

Hope this is helpful!

Joni321pku commented 1 year ago

Collecting wfuzz Using cached wfuzz-3.1.0-py3-none-any.whl (148 kB) Collecting chardet Using cached chardet-5.1.0-py3-none-any.whl (199 kB) Collecting pycurl Using cached pycurl-7.45.2.tar.gz (234 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [20 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 14, in File "C:\Users\aldiirsad\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools__init.py", line 12, in import setuptools.version File "C:\Users\aldiirsad\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\version.py", line 1, in import pkg_resources File "C:\Users\aldiirsad\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources__init.py", line 77, in import('pkg_resources.extern.packaging.requirements') File "C:\Users\aldiirsad\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_vendor\packaging\requirements.py", line 9, in from pkg_resources.extern.pyparsing import stringStart, stringEnd, originalTextFor, ParseException File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 672, in _load_unlocked File "", line 632, in _load_backward_compatible File "C:\Users\aldiirsad\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources\extern\init__.py", line 43, in load_module import__(extant) File "C:\Users\aldiirsad\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_vendor\pyparsing.py", line 943, in collections.MutableMapping.register(ParseResults) AttributeError: module 'collections' has no attribute 'MutableMapping' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.