- регистрируем устройство сначала в linux потом в macos
- выгружаем ключ из macos
sudo defaults read com.apple.bluetoothd.plist LinkKeys > linkkeys.txt
{ "a0-99-9b-16-43-d2": { "00-1f-20-47-e5-22": "0x4d6b002f37584c09ee219365b78ba03e", "04-0c-ce-3d-15-4d": "0xfe998c624bb29a7c40b2e67010db71ed"}}
- в linux останавливаем службу
sudo systemctl stop bluetooth.service
- в linux в файле
/var/lib/bluetooth/a0:99:9b:16:43:d2/00:1f:20:47:e5:22/info
заменяем ключ полученный с помощью выраженияecho 4d6b002f37584c09ee219365b78ba03e | sed 's/ //g;s/../\U&\n/g' | tac | tr -d '\n' ; echo
- в linux запускаем службу
sudo systemctl start bluetooth.service
Last active
March 13, 2024 19:20
-
-
Save Albus/08cda5f5c9116bc69fce62fc1514f924 to your computer and use it in GitHub Desktop.
bluetooth mouse key share (linux&mac)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment