Design a keylogger.
Keylogger app is a C++ application that has basic functionalities of key logging software. Three primary goals of this app are:
- Execute in hidden mode in background.
- Detect and capture Keystrokes.
- Save keystrokes log in a text file.
This keylogger supports the following characters and symbols:
[ESC][F1][F2][F3][F4][F5][F6][F7][F8][F9][F10][F11][F12]
`1234567890-=
~!@#$%^&*()_+
qwertyuiop[]\asdfghjkl;'zxcvbnm,./
QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?
[TAB][C0][C1][SHIFT][LCTRL][LWIN][LALT][SPACE][RALT][RWIN][MENU][RCTRL][ENTER][BACK]
[DEL][INS][END][HOME][PGDN][PGUP][ARROWD][ARROWU][ARROWL][ARROWR]
- C++
- FreeConsole(): Detaches the calling process from its console. It helps in running the program in background.
- GetAsyncKeyState() can't tell the difference between upper and lower case letters. We would need to take SHIFT and CAPSLOCK into account in order to determine case.
-
Clone this repository from GitHub: $ https://github.com/aksuman055/keylogger
-
Open keylogger.cpp and change the maximum number of key strokes you wish to record (max constant)
-
Compile with MinGW: g++ keylogger.cpp -o keylogger.exe
-
Run keylogger.exe
-
The program will terminate after a certain number(max constant) of key strokes.
-
Inspect log.txt
log.txt output: