Simple Keylogger For Windows
Published: 22/02/2025 | Tags: #c
During my time at university, I took a module that introduced the basics of C programming. I was excited to learn this language because it’s used in everything from operating systems to robotics. Since I have a keen interest in robotics, I knew C would be a great foundation for my future projects.
As part of our coursework, we had to create a C project in a group. We decided to build a simple keylogger. We only had a couple of months to learn C and develop the project from scratch, so we narrowed our focus to the Windows operating system. I want to emphasize that this was purely for educational purposes; our goal was to understand Windows internals, cryptography, and core system programming concepts.
Features
- Logging Keys from Keyboard that the user inputs Stores keys to a file
- Encrypts the content of the file so that the user can't see its content and doesn't get suspicious. The content is encrypted with a key that only attackers can decrypt.
- Feature to extract files to a server
- Run the program in the background.
- Gain persistence (Automatic Startup or Task Scheduler
Methodology
Keystroke Detection and Store
Persistance
Exfiltration
Overall, this project was a challenging and exciting introduction to C programming. It taught me a lot about how operating systems function and how to implement secure practices in my code. As I continue my studies, I look forward to applying these skills in more advanced robotics projects and beyond.
For further details you can go to the github repo: https://github.com/daveb17117/keylogger