riverloopsec / killerbee

IEEE 802.15.4/ZigBee Security Research Toolkit
http://www.riverloopsecurity.com
Other
764 stars 215 forks source link

Zbjammer on cc2531 #269

Open remydemy opened 2 years ago

remydemy commented 2 years ago

Hello,

I'm trying to use the zbjammer with the cc2531. I've flashed the cc2531 with the Bumblebee version 2.1 revision 1 and am using the develop branch of killerbee.

When I'm executing zbjammer I get the following error message:

❯ zbjammer -c 15
zbjammer: jamming channel 15
*** WARNING: this may not actually work on your hardware! Check with spectrum analyser!
*** NOTICE: it is your responsibility to comply with local law. Please check radio spectrum laws in your area before
    proceeding. Hit <ENTER> to continue or CTL-C to abort.
Traceback (most recent call last):
  File "/Users/emily/.pyenv/versions/3.10.4/bin/zbjammer", line 4, in <module>
    __import__('pkg_resources').run_script('killerbee==3.0.0b2', 'zbjammer')
  File "/Users/emily/.pyenv/versions/3.10.4/lib/python3.10/site-packages/pkg_resources/__init__.py", line 651, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/Users/emily/.pyenv/versions/3.10.4/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1448, in run_script
    exec(code, namespace, namespace)
  File "/Users/emily/.pyenv/versions/3.10.4/lib/python3.10/site-packages/killerbee-3.0.0b2-py3.10-macosx-12.2-x86_64.egg/EGG-INFO/scripts/zbjammer", line 51, in <module>
    if not kb.jammer_on():
  File "/Users/emily/.pyenv/versions/3.10.4/lib/python3.10/site-packages/killerbee-3.0.0b2-py3.10-macosx-12.2-x86_64.egg/killerbee/__init__.py", line 459, in jammer_on
    return self.driver.jammer_on(channel=channel, method=method)
TypeError: Bumblebee.jammer_on() got an unexpected keyword argument 'method'

Does anybody know what I can do to resolve this issue?

Thanks, Emily

ArcticNarwhal commented 1 year ago

Hi, that function hasn't been implemented yet for Bumblebee (see /killerbee/dev_bumblebee.py)

remydemy commented 1 year ago

@ArcticNarwhal Yes, I saw that too after I posted this issue, but even when I'm trying to execute the zbdump an error occurs. Well not necessarily an error, but the pcap file is empty, even though the stick lights up when it seems to receive a packet.

I'm trying to capture OpenThread messages. Could that be the problem? I thought it should work because OpenThread also uses IEEE 802.15.4.

I tried to investigate the problem a bit and found that in the dev_bumblebee.py, in the variable rx_buffer bytes are being stored (I assume those are the packets), but in the method process_packet(), where the packets are read there seems to be some kind of problem.

Do you know what that could be?

remydemy commented 1 year ago

Ok nvm if I use version 2.0 of bumblebee and the current version of killerbee zbdump works just fine!