Keylogging Question

Everything else that doesn't fall into one of the other PB categories.
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Keylogging Question

Post by Xombie »

At which point does a typical keylogging program hook into the keyboard input? Say some evil person was able to get a hidden keylogger past my hopefully secure defenses. Now I pull up plain old notepad and hit 'a'. What happens, programmatically? Does the keylogger intercept the WM_KEYDOWN event before notepad or after or simultaneously?

Could someone give me a basic step-by-step process? It certainly does not need to be detailed as I have no intentions of writing one. I just want to know how a system-wide keyboard hooking program works.

Thanks :)
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

well, the one i made intercepts a #wm_char message.......
(and dont worry, i havent used/released my keylogger - just did it for the exercise)
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Post by Xombie »

Thanks - I got some information from someone earlier online so now I'm just going to see if there's a way of scrambling them so they don't work. Or at least so they don't get anything useful :) Maybe a useless exercise but I"ve always been curious if there was a decent way to do it.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

The best is to use a keyboard hook. http://www.wizardsolutionsusa.com/forum ... .php?t=483
Post Reply