Disclaimer! This is only for learning purposes, I'm not responsible for any malicious activity
KeyLoggers are a particularly insidious type of spyware that can record and steal consecutive keystrokes such as Passwords, Usernames, SSN #'s, Credit Card #'s (and much more) that the user enters on a device.
as you may tell, the definition and concept may seem basic but the power of such tool is endless.in the source code.. you'll notice the comments where you need to adjust path for saving the Text file that will record your input.
You need to know that these few line will be detected from your anti-virus, so you'll need to do the following:
- Having "pynput" module is a must, to download it use the command pip3 install pynput in your CMD/Bash.
- Turn off Real-time protection on your anti-virus application.
- Add This file path as an Exclusion (exception) from defender threat scan. * not doing above will cause the file to be erased.
Lastly, run the code and start typing, you'll see the file is saved in desired folder repeatedly as you type. Enjoy :]