fportantier / habu Goto Github PK
View Code? Open in Web Editor NEWHacking Toolkit
License: BSD 3-Clause "New" or "Revised" License
Hacking Toolkit
License: BSD 3-Clause "New" or "Revised" License
Hi,
This is a interesting project using "Scapy-Python3" to build networking tools.
I suggest to suppress the WARNING caused by scapy.
WARNING: No route found for IPv6 destination :: (no default route?)
AndyLee
I've got these comment below when trying to install habu using sudo pip3 install habu :
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-2s2bcpwn/pycrypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-eq7sy789-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-2s2bcpwn/pycrypto/
In the last two or three days:
$ pip3 install habu
Collecting habu
Downloading https://files.pythonhosted.org/packages/c1/a5/db298f9b1e094167c39a39015336834c13482d05a97577770ce8cc539ab0/habu-0.0.72.tar.gz (731kB)
100% |████████████████████████████████| 737kB 16.4MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-qahj4zof/habu/setup.py", line 3, in <module>
with open('README.md') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'README.md'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-qahj4zof/habu/
I downloaded and unpacked habu-0.0.72.tar.gz manually, and sure enough, README.md isn't in there.
Running habu.sniff.arp on Mac OS X produces the following error:
$ habu.arp.sniff
Waiting for ARP packets...
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/habu.arp.sniff", line 10, in
sys.exit(cmd_arp_sniff())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/habu/cli/cmd_arp_sniff.py", line 61, in cmd_arp_sniff
sniff(filter="arp", store=False, prn=procpkt)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scapy/sendrecv.py", line 886, in sniff
r = prn(p)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/habu/cli/cmd_arp_sniff.py", line 24, in procpkt
hosts[pkt[ARP].psrc]['vendor'] = conf.manufdb._get_manuf(pkt[ARP].hwsrc)
AttributeError: 'NoneType' object has no attribute '_get_manuf'
I noticed that your are using an outdate Scapy fork diverged, that does not follow evolutions and fixes from https://github.com/secdev/scapy
You should consider switching to scapy in you requirements.txt
Describe the bug
shodan api key config file to update>?
To Reproduce
habu.shodan.open
Expected behavior
to show the scanned results.
Environment
I've installed Habu on Arch Linux, through the BlackArch repo.
However, none of the dependencies get picked up during the installation and even after installing them manually one issue remains. The version of prompt_toolkit is somehow locked to 1.0.15. Without virtualenv Arch linux does not support version locking like this.
Is there a reason to stick to this specific version and if not, what should I modify to just use the latest version of prompt_toolkit?
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (prompt-toolkit 2.0.7 (/usr/lib/python3.7/site-packages), Requirement.parse('prompt_toolkit==1.0.15'), {'habu'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/habu.arp.poison", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
@_call_aside
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'prompt_toolkit==1.0.15' distribution was not found and is required by habu
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.