This is a simple and lightweight keylogger built in Python using the pynput
library. It records all key presses and stores them in a log file for later review.
⚠ Disclaimer: This project is strictly for educational and ethical use only. Unauthorized use of keyloggers is illegal. Ensure you have explicit permission before running this software.
- Logs all key presses in real-time.
- Runs silently in the background without opening a console window.
- Stores logs in a specified file.
- Lightweight and easy to use.
- Python 3.x
pynput
library
-
Clone the repository or download the script:
git clone https://github.com/MarsgameJu/Keylogger.git cd keylogger
-
Install the required dependency:
pip install pynput
-
Modify the script (optional):
- Change the log file path if necessary.
- Open a terminal or command prompt.
- Run the script in the background without showing a console window:
start pythonw.exe path\to\your\script.py
- Alternatively, you can start the script by double-clicking a
.bat
file that contains the above command.
- By default, logs are saved in
keyfile.txt
. - To change this, edit the script and modify the file path accordingly.