Tuesday 20 June 2017

Packet sniffing with KillerBee and a CC2530 / CC2531 Dongle

Previously I have blogged about the TI CC2530 and CC2531 ZigBee USB dongles, and getting packet sniffing working with the CC2530 (which I received from a Chinese vendor when I thought I was getting a CC2531).

Well, today I received a CC2531 dongle (again, from a Chinese supplier because they are a quarter of the price), which turned out to actually be a CC2531 dongle!


So this prompted me to complete some work I started on porting CC2530 support to the KillerBee utilities.  This was quite straight forward, given the reverse engineering of the CC2530/CC2531 packet sniffing protocol that has been done in the open source projects I previously identified, and the experience of the KillerBee drivers that I previously gained when fixing a packet truncation issue in the KillerBee RZUSBstick driver.

The result is a KillerBee driver for the CC2530 and CC2531 dongles that supports packet sniffing (so tools like zbdump and zbwireshark work).  This will be a great help for sniffing ZigBee traffic when one of my CC253x dongles while I'm simultaneously using my RZUSBstick to inject traffic.

This work can be found both in a branch on my KillerBee fork, as well as in a pull request that I've submitted back to the KillerBee project:
So it's up to the KillerBee project admins whether they want to integrate that with the KillerBee main branch.

Admittedly, it would have been easier if I'd simply have bought several RZUSBstick dongles... but that wouldn't have been anything like as interesting!

4 comments:

  1. Which firmware (hex) file needs to be flashed to the CC2531 to work with Killerbee? Thanks! :-)

    ReplyDelete
  2. Just the stock firmware that comes with it. Killerbee only supports packet sniffing with this hardware, though, the last time I checked. If you want to do packet injection, you’ll need different hardware.

    ReplyDelete
  3. RZUSBstick is discontinued and its virtually gone from all shops, considered obsolete. Does killerbee have packet injection for CC2531 yet? Are there any alternatives for Atmel/RZ RAVEN/RZUSB stuff?

    ReplyDelete
  4. You'll have to ask the Killerbee team, I'm afraid. I haven't worked on this in some time. This question has been asked before, though, and I don't believe anybody is working towards packet injection on the CC2531. See https://github.com/riverloopsec/killerbee/issues/99

    ReplyDelete