| 4415 | } |
| 4416 | |
| 4417 | void showDoSSubMenu(NimBLEAddress target) { |
| 4418 | const char *options[] = { |
| 4419 | "Connection Flood", "Advertising Spam", "Jam & Connect (NRF24)", "Protocol Fuzzer" |
| 4420 | }; |
| 4421 | |
| 4422 | int choice = showSubMenu("DoS Attacks", options, 4); |
| 4423 | if (choice == -1) return; |
| 4424 | |
| 4425 | DoSAttackServiceClass dos; |
| 4426 | MultiConnectionAttack multi; |
| 4427 | |
| 4428 | switch (choice) { |
| 4429 | case 0: dos.connectionFlood(target); break; |
| 4430 | case 1: dos.advertisingSpam(target); break; |
| 4431 | case 2: multi.jamAndConnect(target); break; |
| 4432 | case 3: runProtocolFuzzer(target); break; |
| 4433 | } |
| 4434 | } |
| 4435 | |
| 4436 | void showPayloadSubMenu(NimBLEAddress target) { |
| 4437 | const char *options[] = {"DuckyScript Injection", "PIN Brute Force", "Auth Bypass Suite"}; |
no test coverage detected