Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 1.32 KB

File metadata and controls

16 lines (15 loc) · 1.32 KB

Python-Keylogger

A simple keylogger in python working in Linux. Is not difficult creating a keylogger for Windows OS.

What we need

  • First, we need this library to emulate some of the PyHook library on linux.
  • The library need python-xlib to work fine. You can install it using sudo apt-get install python-xlib

Structure of the project

This is a simple and dumb example of keylogger that logs every single key pressed in a log file and every character is followed by a /n. To make everything working, create a directory and put inside the keylogger.py file and the pyxhook.py file downloaded from github.
Inside keylogger.py there is a macro named PATH that identify the place where the log file is saved; feel free to change this location as you prefer. Feel free to change everything you want and have fun!

No root privileges are needed

References

Disclaimer

I'm not responsible for your use of the information contained in this document. This is only for learning purpose. Keylogging is not legal.