KeyGuardBy Dag J Nedrelid, on December 22nd, 2016
(1 of 4) Click to see more images.
KeyGuard is a "friendly" keylogger. Made for fun and to brush up an old grunty and unpolished c/c++ Win32 version I had laying around from when I were studying game code and Win32 API. It places itself in c:\KeyGuard\ with 2 registry keys. You can uninstall the server from control panel and a client removal tool is included. There might still be a bug or two.
Development and testing done on Windows 8.1 Pro using Visual Studio 2010. You may wonder how antivirus software reacts on KeyGuard. As of right now, I have only tested it on computers with Avira Pro and Avast Free, and none of them reacted. I use GetAsyncKeyState(Win32 API) to retrieve global keypress information, this may alarm suspicious behavior in some anti-virus scanners. It does not remove any keycodes from the Windows messaging queue, it only peeks at them.
There's a 4096 byte buffer limit for saving text logs in AppData for historical/archive use. KeyGuard will log the following: 0-9, a-z, A-Z, CapsLock, Space, [Enter], [Tab], BackSpace(<), Period, Comma, and foreground window titles.
KeyGuard.zip (SHA-1: 69d7be55379a6b8797675aafe639dc77e8f859f4)
You can read more about the code it uses in the keylogging article.