This project provides a Windows service and keylogger developed in C. The service manages and controls the keylogger, which monitors and logs keystrokes and active foreground processes.
-
Windows Service (
svc.exe
)- Manages service installation, start, stop, and deletion.
- Launches the keylogger in the background.
- Ensures single instance execution of the keylogger.
-
Keylogger (
winkey.exe
)- Captures keystrokes and associated foreground process details.
- Uses low-level hooks to monitor keyboard input.
- Logs data in a readable format with timestamps.
- Compiler: CL
- Build Tool: NMAKE
- OS: Windows 11 but should work on Windows 10
-
Compile the Project: Open a Developer Command Prompt and run:
nmake
-
Install the Service (as administrator):
.\svc.exe install
-
Start the Service (as administrator):
.\svc.exe start
-
Check Keylogger Status:
tasklist | Select-String "winkey"
-
Stop the Service (as administrator):
.\svc.exe stop
-
Remove the Service (as administrator):
.\svc.exe delete
- Disable Windows Defender if necessary for proper functionality.
- Keylogger logs are saved in
keystrokes.log
.