{"id":15112381,"url":"https://github.com/TheLeopard65/Python-Keylogger","last_synced_at":"2025-08-19T14:32:12.805Z","repository":{"id":257460109,"uuid":"858300890","full_name":"TheLeopard65/keylogger","owner":"TheLeopard65","description":"This repository contains a Python script for a keylogger that captures keystrokes and sends them to a Discord channel via a webhook. The script uses the \"pynput\" library to listen for keystrokes and the requests library to send messages to Discord.","archived":false,"fork":false,"pushed_at":"2024-09-16T18:35:25.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-19T00:42:55.672Z","etag":null,"topics":["cybersecurity","discord","discord-bot","keylogger","keylogger-python","pynput","python","python-script","requests","spyware"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheLeopard65.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-16T16:57:42.000Z","updated_at":"2024-09-16T18:37:18.000Z","dependencies_parsed_at":"2024-09-19T20:31:30.560Z","dependency_job_id":null,"html_url":"https://github.com/TheLeopard65/keylogger","commit_stats":null,"previous_names":["theleopard65/keylogger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheLeopard65%2Fkeylogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheLeopard65%2Fkeylogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheLeopard65%2Fkeylogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheLeopard65%2Fkeylogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheLeopard65","download_url":"https://codeload.github.com/TheLeopard65/keylogger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230359872,"owners_count":18214153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cybersecurity","discord","discord-bot","keylogger","keylogger-python","pynput","python","python-script","requests","spyware"],"created_at":"2024-09-26T00:44:27.534Z","updated_at":"2025-08-19T14:32:12.793Z","avatar_url":"https://github.com/TheLeopard65.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PYTHON KEYLOGGER SCRIPT\n\nThis repository contains a Python script for a keylogger that captures keystrokes and sends them to a Discord channel via a webhook. The script uses the [`pynput`](https://pypi.org/project/pynput/) library to listen for keystrokes and [`requests`](https://pypi.org/project/requests/) to send messages to Discord.\n\n## Features\n\n- Captures keystrokes including special keys like Ctrl, Shift, etc.\n- Buffers keystrokes and sends them to Discord in batches of 100.\n- Periodically sends any remaining buffered keystrokes every 5 seconds.\n- Supports basic formatting for special keys like `[CTRL]`, `[SHIFT]`, etc.\n\n## Prerequisites\n\n### 1. Running Locally\n\n1. **Install Dependencies**: Ensure you have the required Python packages installed:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n2. **Configure Webhook URL**: Add your Discord webhook URL to the `.env` file:\n\n   ```env\n   WEBHOOK_URL='YOUR_DISCORD_WEBHOOK_URL_HERE'\n   ```\n\n3. **Run the Script**\n\n   ```bash\n   python keylogger.py\n   ```\n\n4. **Stop the Script**: Use `Ctrl + C` to stop the script. It will flush any remaining buffered keystrokes before exiting.\n\n### 2. Running with Docker\n\n1. **Build the Docker Image**\n\n   ```bash\n   docker build -t keylogger .\n   ```\n\n2. **Run the Docker Container**\n\n   ```bash\n   docker run -it --name keylogger keylogger\n   ```\n\n## Important Notes\n\n* **Ethical Use**: This script is for educational purposes only. Unauthorized use of keyloggers is illegal and unethical. Ensure you have explicit permission before running it on any machine.\n* **Rate Limits**: Be aware of Discord rate limits. Sending too many messages quickly can cause your webhook to be rate-limited or blocked.\n* **Privacy**: Keyloggers capture sensitive data. Use responsibly and securely handle any captured information.\n\n### License\n\n- This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n### Disclaimer\n\n- The authors are not responsible for any misuse of this code or damage caused.\n- Use it at your own risk and comply with all applicable laws and regulations.\n\n### Contact\n\n- For questions or feedback, please open an issue on this repository or contact the maintainer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheLeopard65%2FPython-Keylogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheLeopard65%2FPython-Keylogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheLeopard65%2FPython-Keylogger/lists"}