{"id":20864412,"url":"https://github.com/d1se0/keylogger_script","last_synced_at":"2026-05-03T18:35:40.094Z","repository":{"id":252821055,"uuid":"841555631","full_name":"D1se0/keylogger_script","owner":"D1se0","description":"This repository contains a set of scripts for capturing keyboard input on Linux and Windows systems. The purpose of these scripts is to demonstrate how a basic keylogger can be implemented in different environments.","archived":false,"fork":false,"pushed_at":"2024-08-12T16:59:36.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-12T21:35:17.537Z","etag":null,"topics":["cibersecurity","command-line","commands","ethical-hacking","hacking","hackingetico","kali-linux","keylogger","keylogger-python","linux","pentesters","pentesting","redteam","scripts","tool","tools","windows"],"latest_commit_sha":null,"homepage":"https://dise0.gitbook.io/h4cker_b00k/tecnica-keylogger-automatizada/keylogger-script-automatizado-linux-y-windows","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/D1se0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-12T16:32:32.000Z","updated_at":"2024-12-04T10:24:18.000Z","dependencies_parsed_at":"2024-08-12T19:36:16.889Z","dependency_job_id":"4d34d86b-05c9-4729-b148-8f888142df00","html_url":"https://github.com/D1se0/keylogger_script","commit_stats":null,"previous_names":["d1se0/keylogger_script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/D1se0/keylogger_script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D1se0%2Fkeylogger_script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D1se0%2Fkeylogger_script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D1se0%2Fkeylogger_script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D1se0%2Fkeylogger_script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D1se0","download_url":"https://codeload.github.com/D1se0/keylogger_script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D1se0%2Fkeylogger_script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32580114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cibersecurity","command-line","commands","ethical-hacking","hacking","hackingetico","kali-linux","keylogger","keylogger-python","linux","pentesters","pentesting","redteam","scripts","tool","tools","windows"],"created_at":"2024-11-18T05:42:12.118Z","updated_at":"2026-05-03T18:35:40.063Z","avatar_url":"https://github.com/D1se0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keylogger Script\n\nThis repository contains a set of scripts for capturing keyboard input on Linux and Windows systems. \nThe purpose of these scripts is to demonstrate how a basic keylogger can be implemented in different environments.\n\n# GitBook of `Keylogger Script`:\n\nURL = [Click here](https://dise0.gitbook.io/h4cker_b00k/tecnica-keylogger-automatizada/keylogger-script-automatizado-linux-y-windows)\n\n## Content\n\n- **capture_victim.py** and **server_host.py**: Core Python scripts for capturing keyboard input. Compatible with graphical and terminal environments.\n- **requirements.sh**: Script to install the necessary dependencies to run the Python script.\n\n## Installation Requirements\n\n### 1. `requirements.sh`\n\nThe `requirements.sh` script is responsible for installing the necessary libraries to run the `Python` script. Make sure you run this script with `root` privileges.\n\n**Instructions to run `requirements.sh`:**\n\n### 2. **Download or clone the repository**:\n\n   ```bash\n   git clone https://github.com/D1se0/keylogger_script.git\n   cd keylogger_script\n   ```\n\n## Make the script executable:\n\n ```bash\n chmod +x requirements.sh\n ```\n\n## Run the script as root:\n\n ```bash\n sudo ./requirements.sh\n ```\n\nThis script will install `pynput`, `keyboard`, and `colorama`, which are necessary for the `Python` script to function.\n\n## Use of the Script\n\n### 3. `server_host.py`\n\nThis script receives the keycaps by the `capture_victim.py` script. \nAvailable for graphical and terminal environment.\n\n### 4. `capture_victim.py`\n\nThis script captures keyboard input and sends it to a specified server. Depending on the environment, you can use different libraries to capture the inputs:\n\nGraphical Environment: Use `pynput`.\nTerminal Environment: Use `keyboard`.\n\n## To run the script:\n\nMake sure all dependencies are installed (see Installation Requirements).\n\n## Configure the script:\n\nEdit `capture_victim.py` and `server_host.py` to define the IP address and port of the server to which keystrokes and inputs will be sent.\n\n## Run the script on the attacking machine:\n\n```bash\npython3 server_host.py\n```\n\n## Run the script on the victim machine:\n\n```bash\npython3 capture_victim.py\n```\n\n##ReverseShell\n\nAlso, apart from providing the keyboard captures, a reverse shell is created with the system of the victim machine using a `msfvenom` that we will have to configure according to the settings of the scripts.\nWe will have to load the `multi/handler` module into metasploit and configure it to listen.\n\n## Security Note\n\nThis script is provided for educational purposes. Using a keylogger without the user's explicit permission is illegal and ethically wrong. \nMake sure you always have proper authorization before running or distributing keylogging software.\n\n## Contributions\n\nContributions are welcome. If you want to improve the script or add new features, feel free to make a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n\n## Contacto\n\nPara cualquier pregunta o comentario, por favor contacta a `ciberseguridad12345@gmail.com`.\n\n¡Gracias por utilizar el repositorio `Keylogger Script`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd1se0%2Fkeylogger_script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd1se0%2Fkeylogger_script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd1se0%2Fkeylogger_script/lists"}