|
|
 |
|
|
Pages: 1
User keyboard character entry
(Click here to view the original thread with full colors/images)
Posted by: notsovilefriend
I have the need to create a background task that will intercept the user's keypresses and if wrong to alert them. This is a program to be run ONLY when entering data on certain pages. Although with JavaScript it's simple enough to embedd into my own page, I am unsure how I should approach this for use on someone else's page! Your assistance will be gratefully appreciated. I almost need a standalone background task that could be executed whenever needed. If I could see the source code I may be able to modify it for the specific situation! In the olde DOS days it would have been a .com program but...?! Once again THANKS in advance.
Posted by: BooRadley
Sounds like your average password stealer.
As a background task you would look for windows messages. I can't remember the specifics on it, but in 9x based kernels, it would be something like WM_Send_Message() and look for the message Send_Keys. Again, I don't recall the exact specifics, since it's been like 8 years since I've written anything that would do that (now that I think of it, I'll bet that's past any statuate of limitations), but I think the function is in user32.exe.
How to embed it into a webpage, though . . .
If you wanted to use Java or JavaScript to do that, you'd have to have them hit your own page, then include their whole browser in a frame, so their web surfing was contained in a frame in your webpage. If you wanted to use VBS to do it, you'd have to get the user to enable VBS.
All in all, it sounds like a really bad idea. Trying to surreptitiously capture user keystrokes is most likely illegal no matter what your goal is. Using clandistine means to read a users input is usually a method of cracking their accounts or violating their privacy.
Posted by: notsovilefriend
BooRadley I realise that and am aware that there are x number of keylogger programs available for that sort of sneaky undertaking. I purport myself to be a systems consultant but don't have the technical knowledge to fulfill the request that has been placed upon me
I do say that if I cannot fix it I can probably find out how it can be done and/or who by. The code supplied by others will be acknowledged!
My mission is so simple and honest that I'm surprised no-one has thought of it before!
My friend asked me for a favour. "Can you create a program that will warn me if I have left the caps-lock on SO I DON"T DO THIS?
My idea was a background task previously known as a .com program to check each keystroke and warn if the ASCII val is >64&<91 AND pressed twice in a row unless an escape char is pushed ?F4? which would then allow you to write in capitals. ?F4? could then return you to the normal status? This would save everyone with the program (run constantly from log on or whenever) accidentally SHOUTING AT PEOPLE BY MISTAKE! You seem to be an honest intelligent man and I would love some help please
Posted by: BooRadley
Ahhahahaha. Nice idea.
|
|
|
|
|