{"id":20123101,"url":"https://github.com/e-d-i-n-i/python-keylogger","last_synced_at":"2025-10-17T07:57:24.089Z","repository":{"id":255945722,"uuid":"853459106","full_name":"e-d-i-n-i/python-keylogger","owner":"e-d-i-n-i","description":"Background keylogger for Windows that records keystrokes and logs them to date-based files, running silently without a visible console","archived":false,"fork":false,"pushed_at":"2024-09-08T17:59:52.000Z","size":9881,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T20:31:57.943Z","etag":null,"topics":["executable-file","hack","keylogger","keylogger-python","programming","python"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/e-d-i-n-i.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-06T17:42:14.000Z","updated_at":"2024-09-08T17:59:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c32a621-56f7-4e33-b297-5c582c12fda8","html_url":"https://github.com/e-d-i-n-i/python-keylogger","commit_stats":null,"previous_names":["e-d-i-n-i/python-keylogger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/e-d-i-n-i/python-keylogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-d-i-n-i%2Fpython-keylogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-d-i-n-i%2Fpython-keylogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-d-i-n-i%2Fpython-keylogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-d-i-n-i%2Fpython-keylogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-d-i-n-i","download_url":"https://codeload.github.com/e-d-i-n-i/python-keylogger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-d-i-n-i%2Fpython-keylogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270657715,"owners_count":24623465,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["executable-file","hack","keylogger","keylogger-python","programming","python"],"created_at":"2024-11-13T19:43:29.767Z","updated_at":"2025-10-17T07:57:24.023Z","avatar_url":"https://github.com/e-d-i-n-i.png","language":"HTML","readme":"# Background Keylogger ⌨️\n\nA Python-based keylogger designed to run in the background on Windows without displaying a command console. This tool records keystrokes and logs them to a file.\n\n## Features\n\n- Runs in the background without showing a command console.\n- Logs keystrokes to a file, with automatic file naming based on the current date.\n- Configurable to handle various special keys and modifiers.\n\n## Installation\n\n### Prerequisites\n\n- Python 3.x\n- PyInstaller\n- PyWin32 (for Windows Service)\n\n### Setup\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/e-d-i-n-i/python-keylogger.git\n   cd python-keylogger\n   ```\n\n2. **Install Required Packages**\n\n   Install the necessary Python packages using pip:\n\n   ```bash\n   pip install pynput pywin32\n   ```\n\n3. **Convert Python Script to Executable**\n\n   Use PyInstaller to create an executable. Ensure you have your icon in the `icons` subdirectory.\n\n   ```bash\n   pyinstaller --onefile --windowed --icon=icons/question.ico --name=Keylogger main.py\n   ```\n\n4. **Install as Windows Service (Optional)**\n\n   If you want the keylogger to run as a Windows service:\n\n   ```bash\n   python service.py install\n   python service.py start\n   ```\n\n   Replace `service.py` with the name of your service management script.\n\n## Usage\n\n- **Running the Executable:** Simply run the generated executable. It will start logging keystrokes in the background.\n- **Stopping the Service:** If installed as a service, stop it via Task Manager or using:\n\n  ```bash\n  python service.py stop\n  ```\n\n- **Viewing Logs:** Logs are stored in files named `log_YYYY-MM-DD.txt` in the same directory as the executable.\n\n## Troubleshooting\n\n- **No Log File Created:** Ensure that the executable has write permissions in the directory.\n- **Service Not Running:** Verify that the service is correctly installed and started using Task Manager or the command line.\n\n## Contributing\n\nFeel free to submit issues, pull requests, or suggestions. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Disclaimer\n\nThis keylogger is intended for educational purposes and should be used responsibly. Unauthorized use of keyloggers is illegal and unethical. Ensure you have permission before deploying this tool.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-d-i-n-i%2Fpython-keylogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-d-i-n-i%2Fpython-keylogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-d-i-n-i%2Fpython-keylogger/lists"}