Matheus-Garbelini / sweyntooth_bluetooth_low_energy_attacks

Proof of Concept of Sweyntooth Bluetooth Low Energy (BLE) vulnerabilities.
267 stars 69 forks source link

Invalid non-compliance warning #25

Open inductivekickback opened 2 years ago

inductivekickback commented 2 years ago

Howdy,

In knob_tester_ble.py (line 245) there is a misbehaving check that prints a colorful warning:

elif check_range(accepted_keys, 16, 17): print(Fore.RED + 'Peripheral accepts key size greater than 16. Non-compliance!!!')

The problem is that check_range returns True if accepted_keys is [16].