Matheus-Garbelini / braktooth_esp32_bluetooth_classic_attacks

A Series of Baseband & LMP Exploits against Bluetooth Classic Controllers
https://braktooth.com
448 stars 85 forks source link

Error with sdp_general_query's handling of -a (basically sdp_general_query doesn't work by default) #28

Open jsmif opened 1 year ago

jsmif commented 1 year ago

I edited configs/bt_config.json to have bin/sdp_general_query as the 2nd entry in the "DefaultPrograms" array (since it seems to like to launch the 2nd entry first.) When I do this, I get the error:

[BT Program] Starting program bin/sdp_general_query -u /dev/pts/8 -a A8:66:7F:A1:B2:C3 --iocap 3 --authreq 3 --bounding 1
Packet Log: logs/Bluetooth/hci_dump.pklg
H4 device: /dev/pts/8

Usage: /home/user/Downloads/braktooth_esp32_bluetooth_classic_attacks/wdissector/bin/sdp_general_query -a|--address aa:bb:cc:dd:ee:ff
Use argument -a to connect to a specific device and dump the result of SDP query for L2CAP services.

Clearly there's a -a specified, so something else is going on. What I found by launching manually is that bin/sdp_general_query doesn't like any arguments after the -a. If I run it without the --iocap etc args after -a, I don't get the error. (Though I also don't get any output, though I'm not sure if I'm supposed to if it's launched manually.)

I'm not really sure where to edit to alter this, so I thought I'd just let you know. (Note: even if you move -a to last, it will still error out.)