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

Function showPayloadSubMenu

src/modules/ble/BLE_Suite.cpp:4436–4451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4434}
4435
4436void 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
4453void showTestingSubMenu(NimBLEAddress target) {
4454 const char *options[] = {

Callers 1

Calls 8

showSubMenuFunction · 0.85
getScriptFromUserFunction · 0.85
HIDDuckyServiceClass · 0.85
AuthBypassEngineClass · 0.85
injectDuckyScriptMethod · 0.80
bruteForcePINMethod · 0.80
exploitAuthBypassMethod · 0.80

Tested by

no test coverage detected