Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re: Wafw00f issue #196

Closed
niemant opened this issue Aug 4, 2016 · 7 comments
Closed

Re: Wafw00f issue #196

niemant opened this issue Aug 4, 2016 · 7 comments

Comments

@niemant
Copy link

niemant commented Aug 4, 2016

Re Open

It seems that ptf> use modules/install_update_all, broke the wafw00f install in Kali Linux Rolling.

The only way or running wafw00f successfully is going to:

/pentest/intelligence-gathering/waffit/wafw00f/
and running main.py

ls on the folder:

/pentest/intelligence-gathering/waffit/wafw00f# ls -ltrn
total 48
drwxr-xr-x 2 0 0 4096 jul 28 00:39 tests
drwxr-xr-x 2 0 0 4096 jul 28 00:39 plugins
-rw-r--r-- 1 0 0 628 jul 28 00:39 manager.py
-rwxr-xr-x 1 0 0 20390 jul 28 00:39 main.py
drwxr-xr-x 2 0 0 4096 jul 28 00:39 lib
-rw-r--r-- 1 0 0 46 jul 28 00:39 init.py
drwxr-xr-x 2 0 0 4096 jul 28 00:39 bin
-rw-r--r-- 1 0 0 177 jul 28 00:39 init.pyc

If I run it using the command wafw00f directly in that folder or any folder the error I get is:

/pentest/intelligence-gathering/waffit/wafw00f# wafw00f
Traceback (most recent call last):
File "/usr/local/bin/wafw00f", line 4, in
import('pkg_resources').run_script('wafw00f==0.9.4', 'wafw00f')
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2928, in
@_call_aside
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2914, in _call_aside
f(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2941, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 637, in _build_master
return cls._build_from_requirements(requires)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 650, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 829, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pluginbase==0.3' distribution was not found and is required by wafw00f

@trustedsec
Copy link
Collaborator

I've added pluginbase as a requirement in the latest version of PTF. You can simply type pip install pluginbase to resolve this issue.

Thanks for the report.

@niemant
Copy link
Author

niemant commented Aug 10, 2016

Hi, As I mentioned before:

pip install pluginbase
Requirement already satisfied (use --upgrade to upgrade): pluginbase in /usr/local/lib/python2.7/dist-packages

Regards

@trustedsec
Copy link
Collaborator

Then use pip install --upgrade. When I use it on Ubuntu it works fine. You could be using an out of date version of Python.

@trustedsec
Copy link
Collaborator

The error message is clear.

@niemant
Copy link
Author

niemant commented Aug 10, 2016

I do understand the error is clear, but again:

pip install --upgrade pluginbase
Requirement already up-to-date: pluginbase in /usr/local/lib/python2.7/dist-packages

This happened when I "installed" ptf, is there any route of python that it modifies?

Thanks

@niemant
Copy link
Author

niemant commented Aug 10, 2016

When I run locate searching for pluginbase here is the result:
locate pluginbase

/pentest/vulnerability-analysis/faraday/test_cases/pluginbase_api.py
/usr/local/lib/python2.7/dist-packages/pluginbase-0.4.dist-info
/usr/local/lib/python2.7/dist-packages/pluginbase.py
/usr/local/lib/python2.7/dist-packages/pluginbase.pyc
/usr/local/lib/python2.7/dist-packages/pluginbase-0.4.dist-info/DESCRIPTION.rst
/usr/local/lib/python2.7/dist-packages/pluginbase-0.4.dist-info/INSTALLER
/usr/local/lib/python2.7/dist-packages/pluginbase-0.4.dist-info/METADATA
/usr/local/lib/python2.7/dist-packages/pluginbase-0.4.dist-info/RECORD
/usr/local/lib/python2.7/dist-packages/pluginbase-0.4.dist-info/WHEEL
/usr/local/lib/python2.7/dist-packages/pluginbase-0.4.dist-info/metadata.json
/usr/local/lib/python2.7/dist-packages/pluginbase-0.4.dist-info/top_level.txt
/usr/share/python-faraday/test_cases/pluginbase_api.py
/usr/share/python-faraday/test_cases/pluginbase_api.pyc

I've also tried reinstalling wafw00f but I get the same error.

@niemant
Copy link
Author

niemant commented Aug 10, 2016

Solved it running again:

ptf> use modules/install_update_all

Thanks for your patience and assistance

righettod added a commit to righettod/toolbox-pentest-web that referenced this issue Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant