← 返回全部文章Notion · Cloudflare

嵌入式开发 · 2023-10-13

evil apple juice

attack apple‘s device by Bluetooth

#开发

📝 需要准备的东西有:

esp32开发板,pc,数据线

实际上,支持所有带蓝牙的esp32开发版

如何开启最高功率?

void setup()
{
  Serial.begin(115200);
  Serial.println("Starting ESP32 BLE");

  BLEDevice::init("AirPods 69");

  // Set the BLE power level
  esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_ADV, ESP_PWR_LVL_P21);
  esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_SCAN, ESP_PWR_LVL_P21);
  esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_DEFAULT, ESP_PWR_LVL_P21);

  // Create the BLE Server
  BLEServer* pServer = BLEDevice::createServer();
  pAdvertising = pServer->getAdvertising();

  // seems we need to init it with an address in setup() step.
  esp_bd_addr_t null_addr = { 0xFE, 0xED, 0xC0, 0xFF, 0xEE, 0x69 };
  pAdvertising->setDeviceAddress(null_addr, BLE_ADDR_TYPE_RANDOM);
}
文章图片

📎 参考文章

https://github.com/ckcr4lyf/EvilAppleJuice-ESP32