A low-level keyboard and mouse event logger for Windows systems, written in Rust using the Windows API.
This application uses Windows hooks and operates at the system level using WH_KEYBOARD_LL and WH_MOUSE_LL hooks to intercept input events before they reach applications.
- Keyboard Event Logging: Captures key presses, releases, and system key events
- Mouse Event Logging: Records mouse movements, button clicks, and wheel events
- Timestamped Logs: All events are logged with precise timestamps
- Separate Log Files: Keyboard and mouse events are stored in separate files for easier analysis
- Windows Operating System
- Rust toolchain (stable)
winapicrate dependency
Add the following dependency to your Cargo.toml:
[dependencies]
winapi = { version = "0.3", features = ["winuser"] }Build the project:
cargo build --releaseRun the compiled executable:
cargo run --releaseThe application will start logging immediately and create two files:
kdb_log.txt- Keyboard eventsms_log.txt- Mouse events
To stop logging, terminate the process (Ctrl+C or close the window).
Use this software responsibly and only on systems you own or have explicit permission to monitor. The developers assume no liability for misuse of this software.
Happy hacking :D