I have a question about a technique I've managed to find out about called "Stuff Keys" I think. Used in password crackers and the like.
Basically, sending output from the program to the keyboard buffer in the form of scan codes so that the computer registers the output as just input from a keyboard.
I'm fairly new to the more advanced output techniques than simple printing on screen. Could anyone point me in the direction of a good code example for this?
I found an example on the "A to Z of C" (can't remember the address right now) but that really wasn't very useful. Also I have found examples of information in the keyboard buffer and it seems that it is receiving a single scancode for the 'make' of the key, but it was my impression that scancodes had a 'make' and 'break' code and that they were sent to the buffer seperately, they key being assumed to be held down until the break code is sent.
I would like to be able to do it like this as it makes it a hell of a lot simpler handling combonations and sequences of keys.
If anyone knows of any examples online of this type of technique I would be very greatfull if you could point me in the direction of this. And whether this technique is platform specific (I figured it wasn't because it seems to be more hardware besed signals) because I am currently coding for a Linux box, but will be porting to Windows (and hopefully Mac) in the future.
As a final note I'd like to say that this code is NOT being used for anything like a password cracker. I'm coding an HID which will interface with keystroke based commands using the keyboard buffer to make it completly compatable with any program in the foreground.
Any help would be very appreciated. Manny Thanks.