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

Function showDoSSubMenu

src/modules/ble/BLE_Suite.cpp:4417–4434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4415}
4416
4417void 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
4436void showPayloadSubMenu(NimBLEAddress target) {
4437 const char *options[] = {"DuckyScript Injection", "PIN Brute Force", "Auth Bypass Suite"};

Callers 1

Calls 5

showSubMenuFunction · 0.85
runProtocolFuzzerFunction · 0.85
connectionFloodMethod · 0.80
advertisingSpamMethod · 0.80
jamAndConnectMethod · 0.80

Tested by

no test coverage detected