Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luisenmarroquin/python-keylogger
Simple cross platform keylogger created with Python 3 and keyboard dependency
https://github.com/luisenmarroquin/python-keylogger
keyboard keylog keylogger keylogging logger logging logs pip pip3 portable py pyinstaller pylint pylintrc python python3 pythonw shell simple windows
Last synced: 8 days ago
JSON representation
Simple cross platform keylogger created with Python 3 and keyboard dependency
- Host: GitHub
- URL: https://github.com/luisenmarroquin/python-keylogger
- Owner: LuisEnMarroquin
- License: mit
- Created: 2020-07-05T10:05:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-08T02:19:00.000Z (about 3 years ago)
- Last Synced: 2025-01-20T21:24:02.535Z (12 days ago)
- Topics: keyboard, keylog, keylogger, keylogging, logger, logging, logs, pip, pip3, portable, py, pyinstaller, pylint, pylintrc, python, python3, pythonw, shell, simple, windows
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python keylogger
The simplest keylogger you can create using Python 3 only `keyboard` dependency
This app was created for learning and security purposes only, feel free to use it
Note: Everytime you start the app will delete logs file everytime it runs and only one instance is allowed to run at once
(this works by trying to delete the file but wont be able to because it'll used by the other instance)## Setup and execution
All keystrokes will be saved on file `./keystrokes.log`
```shell
# Get the code from GitHub
git clone https://github.com/LuisEnMarroquin/python-keylogger.git# Go to the project directory
cd python-keylogger/# Install dependencies
pip install -r requirements.txt# Run as foreground process
python keylogger.py# Run as background process (Windows only)
pythonw keylogger.py# Run as background process (Linux / macOS)
python keylogger.py &
```## Stop app from logging
You can stop the background process at any time by clicking `f7` on any place, this is the easy way
The hard way is to search the process in your **Task Manager** and kill the process manually
## Linter for Python code
If you have `sh` installed you can lint all `.py` files at once by running
```shell
sh linter.sh
```## Create portable executable
If the following fails you may need to update all your global dependencies
This will generate the executable on `dist/` folder
```shell
pyinstaller --noconsole --onefile keylogger.py
```