TarlogicSecurity / BlueSpy

PoC to record audio from a Bluetooth device
900 stars 127 forks source link

Pairing failed with status 0x11 (Invalid Index) #12

Open Hugo-prod opened 7 months ago

Hugo-prod commented 7 months ago

Hello,

my setup:

I can discover it with bluetoothctl and connect to it with blueman-applet on my kali
But with btmgmt i get 0x11 (Invalid Index) with any peripheral

Any idea ?

┌──(kali㉿kali)-[~/Documents/BlueSpy]
└─$ sudo python BlueSpy.py -a 11:75:58:13:F1:DC
░█▀▄░█░░░█░█░█▀▀░█▀▀░█▀█░█░█░
░█▀▄░█░░░█░█░█▀▀░▀▀█░█▀▀░░█░░
░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░░░░▀░░
░▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀░
Bluetooth audio recording tool by Tarlogic
[I] Avoiding authentication with 11:75:58:13:F1:DC...
[I] Generating shared key...
Traceback (most recent call last):
  File "/home/kali/Documents/BlueSpy/BlueSpy.py", line 94, in <module>
    main()
  File "/home/kali/Documents/BlueSpy/BlueSpy.py", line 67, in main
    paired = pair(target, verbose=args.verbose)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kali/Documents/BlueSpy/core.py", line 90, in pair
    raise e
  File "/home/kali/Documents/BlueSpy/core.py", line 79, in pair
    run_and_check(
  File "/home/kali/Documents/BlueSpy/system.py", line 35, in run_and_check
    raise CommandValidationException(cmdline, out)
system.CommandValidationException: ('Error while executing command "sudo btmgmt pair -c 3 -t 0 11:75:58:13:f1:dc"', 'Pairing with 11:75:58:13:F1:DC (BR/EDR)\n\x1b[0;91mPairing failed with status 0x11 (Invalid Index)\n\x1b[0m')
┌──(kali㉿kali)-[~/Documents/BlueSpy]
└─$ sudo btmgmt pair -c 3 -t 0 11:75:58:13:f1:dc
Pairing with 11:75:58:13:F1:DC (BR/EDR)
Pairing failed with status 0x11 (Invalid Index)
jesusgomezmoreno commented 5 months ago

Can you connect and pair to the device using bluetoothctl? Do you have any wireshark capture of the connection using blueman-applet?