greatscottgadgets / ubertooth

Software, firmware, and hardware designs for Ubertooth
https://greatscottgadgets.com/ubertoothone/
GNU General Public License v2.0
1.92k stars 430 forks source link

Trying to see if Ubertooth could handle this Bluetooth Classic use case #480

Closed dv1 closed 2 years ago

dv1 commented 2 years ago

I have an old gadget here that has a remote controller. It predates Bluetooth 4.0, so it uses Bluetooth Classic 2.1 instead of BLE. The remote controller is really badly designed, so I want to create my own. I know that it communicates to the device via RFCOMM.

What I want to do is to capture all of the RFCOMM data traveling between these two devices. I do know the PIN (it is a hardcoded PIN), so I am not talking about somehow cracking an encryption. With all of this, would Ubertooth be of help here? I know its Bluetooth Classic sniffer capabilities are limited, but perhaps it suffices for my use case.

mikeryan commented 2 years ago

Check out btbr host code and firmware. If Ubertooth is capable of sniffing the device, that would be the toolset that can do it. I have not used it very much, so I can't offer much support on that side.

Have you thought of trying to man-in-the-middle the connection using a Linux host running BlueZ advertising an RFCOMM service? Upon receiving connection from the controller, you could establish a connection to the target device and transport the data between the two, logging it.

dv1 commented 2 years ago

I considered that, yes. Unfortunately, it is rather complicated due to nontrivial SDP involvement. Nevertheless, I'll give it a try, thanks.

straithe commented 2 years ago

@dv1 Do you still need assistance with this issue?

dv1 commented 2 years ago

Sorry forgot to close. No, I'll close this, thanks.