DigitalSecurity / btlejuice

BtleJuice Bluetooth Smart (LE) Man-in-the-Middle framework
722 stars 124 forks source link

Error in Discovering device services and Characteristics #12

Open malikyaseen opened 7 years ago

malikyaseen commented 7 years ago

Hi

I am doing research on BLE security. Your work is really helpful. However i am facing following issue

Scenario: Two Kali Linux machines each having CSR 8510 Bluetooth dongle in a VM environment. VM's successfully connect to eachother but when i double click to connect to BLE device (a simple VR box bluetooth controller) error occurs (detailed error file attached) in discovering its services and characteristics. Moreover is there any way I can simulate BLE advertising device via nrf Connect so that i dont have to use physical ble device?

Your help is really appreciated in this!!!

error.txt

virtualabs commented 7 years ago

Hi,

Your target device tries to pair with Btlejuice's emulated device, which is only possible on specific Linux kernel versions and associated BlueZ versions (I don't remember the versions but I can find out which ones if required). Btlejuice may handle BTLE "JustWorks" pairing and only this type of pairing. This is a limitation due to the Bleno library Btlejuice's built upon.

Moreover is there any way I can simulate BLE advertising device via nrf Connect so that i dont have to use physical ble device?

nrf Connect allows this through its "Advertiser" tab, simply scan nearby BTLE devices and clone them with the included advertiser. It should work on Android.

virtualabs commented 7 years ago

Your application tries to pair with your device, causing this issue. At the moment, Btlejuice only supports "JustWorks" pairing when installed with a recent version of BlueZ library and a kernel compiled with specific options and modules. That is, it works on a very few setup, but not yours apparently.

malikyaseen commented 7 years ago

Thanks for the reply I am pairing using Just Works method and a simulated BLE device using nrf connect (simple temperature sensor) but btlejuice is still unable to show its services and characteristics!!!!

thack1 commented 5 years ago

Your application tries to pair with your device, causing this issue. At the moment, Btlejuice only supports "JustWorks" pairing when installed with a recent version of BlueZ library and a kernel compiled with specific options and modules. That is, it works on a very few setup, but not yours apparently.

Can you name the necessary BlueZ version and the kernel options and modules to make pairing "JustWorks" work?