Hm I see that. Looks like it is "inject.bin" and "inject2.bin". Also, num lock would affect payload 1 and caps would initiate payload 2? This block of code makes me think that:
void ui_kbd_led(uint8_t value)
{
if(!in_affect){
//this is called when LEDs CAPS LCK, NUM LCK change
if (value & HID_LED_NUM_LOCK) {
// Here, turn on Num LED
LED_On( LED1 );
in_affect=true;
//use injectarray
state = state_START_INJECT;
} else{
// Here, turn off Num LED
LED_Off( LED1 );
}
if (value & HID_LED_CAPS_LOCK) {
// Here, turn on CAPS LED
LED_On( LED0 );
in_affect=true;
//use injectarray2
for (int c=0;c<(sizeof(inject_array2));c++){
inject_array[c]=inject_array2[c];
}
state = state_START_INJECT;
} else{
// Here, turn off CAPS LED
LED_Off( LED0 );
}
}
}
I haven't written in C in a while, though, so I'm not sure if injectarray = inject.bin / injectarray2 = inject2.bin. Can anyone confirm?
Also, does the key (caps lock or num lock) need to be active for the payload to work, or does one put the ducky in first, and then press the corresponding button? I'm not with it right now, or I would test this, but I'd love to know from someone more knowledgeable.