Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdxabu/projectnm
https://github.com/mdxabu/projectnm
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mdxabu/projectnm
- Owner: mdxabu
- Created: 2024-04-03T17:20:44.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-04T10:23:34.000Z (9 months ago)
- Last Synced: 2024-04-04T11:34:33.770Z (9 months ago)
- Language: Python
- Size: 3.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Keylogger
This is a simple keylogger implemented in Python using the `pynput` library. It captures keyboard events and logs them to a text file (`key_log.txt`) and a JSON file (`key_log.json`).
## Features:
- Records pressed, held, and released keys.
- Saves key logs in both text and JSON formats.
- Provides a graphical user interface (GUI) built with Tkinter for starting and stopping the keylogger.## Requirements:
- Python 3.x
- pynput library (`pip install pynput`)## Usage:
1. Run the script (`keylogger.py`).
2. Click the "Start" button to begin keylogging.
3. Press keys on your keyboard.
4. Click the "Stop" button to stop keylogging.## Files:
- `keylogger.py`: The main Python script containing the keylogger implementation.
- `key_log.txt`: Text file containing logged key events.
- `key_log.json`: JSON file containing logged key events in JSON format.## How It Works:
- The `on_press` function is called whenever a key is pressed.
- The `on_release` function is called whenever a key is released.
- Key events are stored in a list `keys_used` and periodically saved to text and JSON files.
- The keylogger can be started and stopped using the GUI buttons.## Note:
- This keylogger is for educational purposes only. Do not use it for malicious purposes.
- Be cautious when running the keylogger, as it can log sensitive information.