[Suggestion] Keyboard Caps Lock As Communication
Posted 17 October 2011 - 06:43 PM
I wonder if we could use the keyboard caps lock as a trigger to tell the duck when the OS has enabled the HID device.
maybe the code would be turn on & turn off caps lock until the os sends the signal back that it accepts the change... The duck can load its payload.
Does this make sense to anyone?
Posted 18 October 2011 - 02:21 AM
You could do a similar thing by soldering a button(s) to the ducky and then adding your own code to the firmware to execute Inject1.bin, Inject2.bin, Inject3.bin, etc depending on how many times the button was pressed in sequence (over a 3 second time stop, for example). However, you would need to wait for firmware to be released on the wiki...
Posted 18 October 2011 - 08:17 AM
Posted 19 October 2011 - 02:30 AM
For Example, If you have two keyboards plugged into a machine, if you push num lock on one of them, it will only activate the num lock for THAT one, not the second one...
Posted 19 October 2011 - 02:40 PM
this is the code I used.
DELAY 50 NUMLOCK DELAY 50 NUMLOCK DELAY 50 NUMLOCK DELAY 50 NUMLOCK DELAY 50 NUMLOCK
The Number lock flashed on my keyboard. My question is there a way for the Duck to read that the number lock is toggled? If so then it could be used as a communication vector.
Posted 20 October 2011 - 02:28 PM
All the same, a HID is incapable of receiving information... (AFAIA)
Posted 20 October 2011 - 02:29 PM
Posted 21 October 2011 - 03:39 AM
A piece of code waits for the num lock button to be pressed, and then turns the light on. Once the light is on, it appears that it also toggles something in Windows as well. I think this is right, because according to your post above, the num lock function in a ducky script activates on a physical keyboard as well..
Also, may I ask, is your physical keyboard USB or PS/2?
Posted 21 October 2011 - 09:23 AM
For the lazy people, Boingo already done some researched and posted this link in the above thread:
Wich got a section to write data to a keyboard. So it should be possible