Despite the huge danger that keyloggers may pose to any user, they are remarkably easy to make
using Python. The code that will be taught in this section is a keylogger that does not rely on
hardware and will continue to run in the background, which prevents the targeted user from noticing it.
Pull up Your Editor
Open IDLE, or any text editor of your choice. Once you are on a new script window, input the
following code:
Test the Created File
Save the code as keylogger.py, and then run the file by pressing Ctrl + R. The keylogger will
proceed running in the background and will log the keystrokes on the keyloggeroutput.txt file.
To end logging, pull up Task Manager and end all running Python tasks and programs.
0 Comments