BlackArch / blackarch

An ArchLinux based distribution for penetration testers and security researchers.
https://www.blackarch.org
Other
2.86k stars 579 forks source link

[zarp] fails to load two modules. #276

Closed ghost closed 11 years ago

ghost commented 11 years ago

The warning:

[-] Module src.modules.attacks.beef_hook failed to load! (cannot import name http_auth)
[-] Module src.modules.attacks.pemod failed to load! (cannot import name http_auth)
archey commented 11 years ago

I found the issue we need to add python2-netlib as a dependency. I will get it added and update the PKGBUILD. We also need a pkgbuild for the python2-netlib as well, correct?

ghost commented 11 years ago

I already tried adding python2-netlib as a dependency.

archey commented 11 years ago

Yeah I saw that I will see if I can figure out what else its missing.

archey commented 11 years ago

I think we are missing the python2-nfqueue package, its outdated in the AUR and it won't compile properly.

ghost commented 11 years ago

I'll try to get it to build.

ghost commented 11 years ago

I managed to get the python2-nfqueue package to build. Installing it did not make the zarp errors go away though.

archey commented 11 years ago

It looks like the http_auth module pulls from the python2-netlib package, however it is missing from python2-netlb package.

/usr/share/zarp/src/lib/libmproxy ≥ grep -rinse "http_auth" * 21:39 proxy.py:19:from netlib import odict, tcp, http, wsgi, certutils, http_status, http_auth proxy.py:647: password_manager = http_auth.PassManSingleUser(username, password) proxy.py:649: password_manager = http_auth.PassManNonAnon() proxy.py:652: password_manager = http_auth.PassManHtpasswd(options.auth_htpasswd) proxy.py:655: authenticator = http_auth.BasicProxyAuth(password_manager, "mitmproxy") proxy.py:657: authenticator = http_auth.NullProxyAuth(None)

/usr/lib/python2.7/site-packages/netlib ≥ ls 21:40 init.py certutils.py http.py http_status.py http_uastrings.py odict.py tcp.py utils.py version.py wsgi.py init.pyc certutils.pyc http.pyc http_status.pyc http_uastrings.pyc odict.pyc tcp.pyc utils.pyc version.pyc wsgi.pyc

Do we have the latest version of netlib from pypi? I noticed the github link for netlib is missing.

ghost commented 11 years ago

That was the problem. We were using netlib-0.2.2.

I updated the python2-nfqueue package on the AUR, by the way.

ghost commented 11 years ago

The zarp modules loaded correctly after upgrading python2-netlib and adding python2-flask as a dependency to zarp. (a7456fe19d41)