I'm trying to see the command lines that an iPad app is generating and then sending to a device via Bluetooth. Is there some kind of interface where I can "intercept" the commands?
-
1Wireshark may help. On Ubuntu it is able to capture bluetooth traffic.– N0rbertDec 30, 2017 at 15:37
-
@N0rbert Do you know how? If so, make that an answer please!– dessertDec 30, 2017 at 16:51
-
O.k. I will give it a go... Thank you for your answer!– Fasterandhigher RastDec 30, 2017 at 19:17
-
@FasterandhigherRast That was a comment. Below is the answer: if that helped you, please do not forget to accept the answer by clicking the grey checkmark, turning it into a beautiful green! (thus advertising to other users that this answer helped you)– FabbyDec 31, 2017 at 11:44
Add a comment
|
1 Answer
Install wireshark
sudo apt-get install wireshark
configure it to capture packets as normal user
sudo chgrp wireshark /usr/bin/dumpcap sudo chmod o-rx /usr/bin/dumpcap sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap sudo usermod -a -G wireshark $USER
launch it and start capture of bluetooth packets: on welcome screen in Capture part of window double click bluetooth0, perform some bluetooth-related actions on laptop or on iPad then analyze packets. You can stop the capture by Capture->Stop (or CtrlE).
-
1This will only work if the PC is the device receiving the packets, though, as the bluetooth connection is encrypted.– dobeyDec 31, 2017 at 14:27