| 4434 | } |
| 4435 | |
| 4436 | void showPayloadSubMenu(NimBLEAddress target) { |
| 4437 | const char *options[] = {"DuckyScript Injection", "PIN Brute Force", "Auth Bypass Suite"}; |
| 4438 | |
| 4439 | int choice = showSubMenu("Payload Delivery", options, 3); |
| 4440 | if (choice == -1) return; |
| 4441 | |
| 4442 | switch (choice) { |
| 4443 | case 0: { |
| 4444 | String script = getScriptFromUser(); |
| 4445 | if (!script.isEmpty()) HIDDuckyService().injectDuckyScript(target, script); |
| 4446 | break; |
| 4447 | } |
| 4448 | case 1: PairingAttackServiceClass().bruteForcePIN(target); break; |
| 4449 | case 2: AuthBypassEngine().exploitAuthBypass(target); break; |
| 4450 | } |
| 4451 | } |
| 4452 | |
| 4453 | void showTestingSubMenu(NimBLEAddress target) { |
| 4454 | const char *options[] = { |
no test coverage detected