ВНИМАНИЕ: Данный проект реализуется для личного использования на личных устройствах, и не подразумевает вредоносного использования и причинения какого либо вреда окружающим. Реализовал код поиска сопряженных устройств, теперь хочу реализовать многопоточный спам пакетами на указанный мак адрес. Мой код поиска на c++: #include <windows.h> #include <bthsdpdef.h> #include <bluetoothapis.h> #include <iostream> #include <iomanip> #pragma comment(lib, "Bthprops.lib") void PrintBluetoothDevices() { HBLUETOOTH_DEVICE_FIND hFind = nullptr; BLUETOOTH_DEVICE_INFO deviceInfo = { 0 }; deviceInfo.dwSize = sizeof(BLUETOOTH_DEVICE_INFO); BLUETOOTH_DEVICE_SEARCH_PARAMS searchParams = { sizeof(BLUETOOTH_DEVICE_SEARCH_PARAMS), 1, 0, 1, 1, 1, 15, nullptr }; hFind = BluetoothFindFirstDevice(&searchParams, &deviceInfo); if (hFind == nullptr) { std::cout << "Сопряженные устройства не найдены." << std::endl; return; } do { std::wcout << L"Имя устройства: " << deviceInfo.szName << std::endl; std::cout << "MAC-адрес: "; for (int i = 0; i < 6; ++i) { std::cout << std::hex << std::setw(2) << std::setfill('0') << ((deviceInfo.Address.rgBytes[5 - i]) & 0xFF); if (i < 5) std::cout << ":"; } std::cout << std::endl; std::cout << "---------------------------" << std::endl; } while (BluetoothFindNextDevice(hFind, &deviceInfo)); BluetoothFindDeviceClose(hFind); } int main() { SetConsoleOutputCP(CP_UTF8); SetConsoleCP(CP_UTF8); setlocale(LC_ALL, "Russian"); std::cout << "Поиск сопряженных Bluetooth-устройств..." << std::endl; PrintBluetoothDevices(); return 0; } C #include <windows.h> #include <bthsdpdef.h> #include <bluetoothapis.h> #include <iostream> #include <iomanip> #pragma comment(lib, "Bthprops.lib") void PrintBluetoothDevices() { HBLUETOOTH_DEVICE_FIND hFind = nullptr; BLUETOOTH_DEVICE_INFO deviceInfo = { 0 }; deviceInfo.dwSize = sizeof(BLUETOOTH_DEVICE_INFO); BLUETOOTH_DEVICE_SEARCH_PARAMS searchParams = { sizeof(BLUETOOTH_DEVICE_SEARCH_PARAMS), 1, 0, 1, 1, 1, 15, nullptr }; hFind = BluetoothFindFirstDevice(&searchParams, &deviceInfo); if (hFind == nullptr) { std::cout << "Сопряженные устройства не найдены." << std::endl; return; } do { std::wcout << L"Имя устройства: " << deviceInfo.szName << std::endl; std::cout << "MAC-адрес: "; for (int i = 0; i < 6; ++i) { std::cout << std::hex << std::setw(2) << std::setfill('0') << ((deviceInfo.Address.rgBytes[5 - i]) & 0xFF); if (i < 5) std::cout << ":"; } std::cout << std::endl; std::cout << "---------------------------" << std::endl; } while (BluetoothFindNextDevice(hFind, &deviceInfo)); BluetoothFindDeviceClose(hFind); } int main() { SetConsoleOutputCP(CP_UTF8); SetConsoleCP(CP_UTF8); setlocale(LC_ALL, "Russian"); std::cout << "Поиск сопряженных Bluetooth-устройств..." << std::endl; PrintBluetoothDevices(); return 0; } Не подскажите как можно на виндовс консольной проге провернуть такое? чтоб проспамить (исключительно свое соединение с наушниками) ?