This project is a keylogger application that records keystrokes from multiple computers and users, stores the data on a server, and provides a web-based interface to view and analyze the recorded data.
- Records keystrokes from multiple computers and users.
- Stores recorded data in a JSON file on the server.
- Provides a web-based interface to view and analyze the recorded data.
- Supports filtering and searching of recorded data.
- Displays insights such as extracted emails and URLs from the recorded data.
- Supports dark and light themes for the web interface.
- Python 3.x
pipinstalled
-
Clone the repository:
git clone https://github.com/Penime/PythonKeylogger.git
-
Navigate to the project directory:
cd PythonKeylogger -
Create a virtual environment (optional):
python -m venv .venv
-
Activate the virtual environment (optional):
- On Windows:
.venv\Scripts\activate
- On macOS/Linux:
source .venv/bin/activate
- On Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Start the server inside the
serverdirectory:python run_server.py
-
Run the Keylogger by executing the main script in the
key_loggerdirectory:python main.py
-
open
frontend/index.htmlin your browser.
GET /data: Returns all keylog data as JSON.GET /computers: Returns a list of computers and users (no logs).GET /user_data: Returns logs for a specific user.POST /logs: Receives and stores keylog data from clients.
The front-end interface provides the following features:
- Data Viewer: Displays a list of computers and users with recorded data.
- User Details: Displays detailed logs and insights for a selected user.
- Filtering and Searching: Allows filtering and searching of recorded data.
- Insights: Extracts and displays emails and URLs from the recorded data.
- Theme Toggle: Supports dark and light themes.
- If configured captured keystrokes can be stored in a local log file.
- logs is sent to a remote server.
- Ensure that logs are managed securely and deleted if necessary.
-
Delete the project directory:
rm -rf PythonKeylogger
-
If a virtual environment was created, remove it:
rm -rf .venv
-
Remove any generated log files:
rm logs.txt
The use of a Keylogger may violate privacy rights and laws. This tool is intended for ethical use only, such as monitoring personal devices with explicit consent. Ensure compliance with local laws before using this software.
This project is licensed under the MIT License. See LICENSE for details.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch.
- Commit and push your changes.
- Submit a pull request.
For any issues or feature requests, open an issue in the repository.