monk-dot / killerbee

Automatically exported from code.google.com/p/killerbee
0 stars 1 forks source link

RZUSB zbdump not working #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. zbdump is not working with Atmel RZUSB

What is the expected output? What do you see instead?
root@ubuntu:/home/kevin/killerbee-read-only/killerbee# zbid 
Dev Product String  Serial Number
002:002 KILLERB001  CBA117FFFF25
Found 1 devices.
root@ubuntu:/home/kevin/killerbee-read-only/killerbee# zbdump -i 002:002 -f 20 
-w test.pcap
Traceback (most recent call last):
  File "/usr/local/bin/zbdump", line 94, in <module>
    kb.set_channel(arg_channel)
  File "/usr/local/lib/python2.7/dist-packages/killerbee/__init__.py", line 235, in set_channel
    self.driver.set_channel(channel)
  File "/usr/local/lib/python2.7/dist-packages/killerbee/dev_rzusbstick.py", line 328, in set_channel
    self._set_mode(RZ_CMD_MODE_AC)
  File "/usr/local/lib/python2.7/dist-packages/killerbee/dev_rzusbstick.py", line 244, in _set_mode
    self.__usb_write(RZ_USB_COMMAND_EP, [RZ_CMD_SET_MODE, RZ_CMD_MODE_AC])
  File "/usr/local/lib/python2.7/dist-packages/killerbee/dev_rzusbstick.py", line 202, in __usb_write
    response = self.handle.bulkRead(RZ_USB_RESPONSE_EP, 1)[0]
IndexError: tuple index out of range

root@bt:~/killerbee-read-only/killerbee# zbid
Dev Product String  Serial Number
002:002 KILLERB001  CBA117FFFF25
Found 1 devices.
root@bt:~/killerbee-read-only/killerbee# ./zbdump -i 002:002 -f 15 -w test.dump
bash: ./zbdump: No such file or directory
root@bt:~/killerbee-read-only/killerbee# zbdump -i 002:002 -f 15 -w test.dump
Traceback (most recent call last):
  File "/usr/local/bin/zbdump", line 94, in <module>
    kb.set_channel(arg_channel)
  File "/usr/local/lib/python2.6/dist-packages/killerbee/__init__.py", line 235, in set_channel
    self.driver.set_channel(channel)
  File "/usr/local/lib/python2.6/dist-packages/killerbee/dev_rzusbstick.py", line 328, in set_channel
    self._set_mode(RZ_CMD_MODE_AC)
  File "/usr/local/lib/python2.6/dist-packages/killerbee/dev_rzusbstick.py", line 244, in _set_mode
    self.__usb_write(RZ_USB_COMMAND_EP, [RZ_CMD_SET_MODE, RZ_CMD_MODE_AC])
  File "/usr/local/lib/python2.6/dist-packages/killerbee/dev_rzusbstick.py", line 202, in __usb_write
    response = self.handle.bulkRead(RZ_USB_RESPONSE_EP, 1)[0]
IndexError: tuple index out of range

What version of the product are you using?
[ ] KillerBee 1.0 (from TAR file)
[ X] KillerBee beta (from SVN checkout) Revision # ___
[ ] Other:

On what operating system?  Ubuntu 12.04 & Backtrack 5R3

With what Python version? (python -V)
root@ubuntu:/home/kevin/killerbee-read-only/killerbee# python -V
Python 2.7.3

Is scapy-com installed? Not that I know of

Please provide any additional information below.

Original issue reported on code.google.com by underwoo...@gmail.com on 9 Mar 2013 at 10:19

GoogleCodeExporter commented 9 years ago
Sorry -- just saw this ticket opened.

Can you try checking out the pyUSB1 branch of the code from SVN and 
installing/running that?

If that doesn't work, upgrade your python-pyusb package from 0.x to the 1.x 
branch. The KillerBee code should tell you which you are running when you run 
something like zbid.

Original comment by rmspe...@gmail.com on 11 Jun 2013 at 12:29

GoogleCodeExporter commented 9 years ago
Close..  Issue was related to Parallels & Vmware USB drivers.   When used in 
Virtualbox & natively worked fine.

Original comment by underwoo...@gmail.com on 11 Jun 2013 at 11:01

GoogleCodeExporter commented 9 years ago
Closed per user.

Original comment by rmspe...@gmail.com on 11 Jun 2013 at 11:21