riverloopsec / killerbee

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

cc2531 rssi incorrectly converted #277

Open s1e3p3r opened 1 year ago

s1e3p3r commented 1 year ago

In 'killerbee/cc253x.py' class 'CC253x.pnext()', RSSI value 'rssi' is converted from a byte object to a python int, but should be an 8 bit signed int (eg: -1 is converted to python int: 255). This results in an incorrect RSSI value and when PPI information is written it may raise an exception because 'rssi' will be written as an int8.