Keystroke logging, often referred to as keylogging or keyboard capturing, is the action of recording (logging) the keys struck on a keyboard, typically covertly, so that the person using the keyboard is unaware that their actions are being monitored.
These are computer programs designed to work on the target computer’s software. Keyloggers are used in IT organizations to troubleshoot technical problems with computers and business networks. Families and business people use keyloggers legally to monitor network usage without their users’ direct knowledge. However, malicious individuals can use keyloggers on public computers to steal passwords or credit card information.
This article illustrates designing keylogger for windows and linux.
Keylogger for Windows
Following is the code to create keylogger in python
Save the file in C:\ as Keylogger.py and run thepython file
The keylogger will be started in the background and save all the data on the log file “c:\output.txt”.
Keylogger in Linux
pyxhook requires python-xlib. Install it if you don’t have it already.
sudo apt-get install python-xlib
Download pyxhook library
The keylogger will be started in the background and save all the data on the file.log file “/home/akash/Desktop”.
This article is contributed by Akash Sharan. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
- Layouts in Android UI Design
- OOPs | Object Oriented Design
- Design Issues of Distributed System
- UI vs UX Design : Which Career Option Should You Choose?
- 8 Ways to Shipwreck Your Next Website Design
- 6 Best CSS frameworks You should Know to design Attractive Websites
- Design an online book reader system
- Characteristics of Good Object Oriented Design
- How to Crack System Design Round in Interviews?
- Design Patterns : A Must Skill to have for Software Developers in 2019
- Design data structures for a very large social network like Facebook or Linkedln
- Important differences between Python 2.x and Python 3.x with examples
- Python | Index of Non-Zero elements in Python list
- Python | Merge Python key values to list
- Reading Python File-Like Objects from C | Python