{"id":23983543,"url":"https://github.com/ryhkml/keylogger","last_synced_at":"2026-03-11T10:33:00.332Z","repository":{"id":271349614,"uuid":"912888879","full_name":"ryhkml/keylogger","owner":"ryhkml","description":"Keylogger for Linux. Leaks your keyboard input","archived":false,"fork":false,"pushed_at":"2025-10-19T06:02:10.000Z","size":3861,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T17:49:44.960Z","etag":null,"topics":["c","keylogger","keystroke","linux","overlay-obs","rootless","websocket"],"latest_commit_sha":null,"homepage":"","language":"C","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/ryhkml.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-06T15:47:52.000Z","updated_at":"2025-10-19T06:02:13.000Z","dependencies_parsed_at":"2025-02-24T23:45:32.657Z","dependency_job_id":"5032c908-225a-47ed-95a3-fc3ee6f143d4","html_url":"https://github.com/ryhkml/keylogger","commit_stats":null,"previous_names":["ryhkml/keylogger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryhkml/keylogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryhkml%2Fkeylogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryhkml%2Fkeylogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryhkml%2Fkeylogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryhkml%2Fkeylogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryhkml","download_url":"https://codeload.github.com/ryhkml/keylogger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryhkml%2Fkeylogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30378105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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":["c","keylogger","keystroke","linux","overlay-obs","rootless","websocket"],"created_at":"2025-01-07T12:17:47.470Z","updated_at":"2026-03-11T10:33:00.303Z","avatar_url":"https://github.com/ryhkml.png","language":"C","readme":"# Keylogger\n\n![Keylogger screenshot](./sample.png)\n\n## Build and Usage\n\n```sh\nmake\n```\n\nUse `sudo` to run. The keylogger outputs to the `/tmp/.keylogger.log` file. You can also get output via a WebSocket. However, this requires the [libwebsockets](https://libwebsockets.org) library. Install libwebsockets and then run:\n\n```sh\nmake USE_LIBWEBSOCKETS=1\n```\n\nIf target device is incorrect. Use the `--dev \u003cPATH\u003e` option to specify a device event. List available devices run `ls -l /dev/input/by-id/`\n\n```sh\nsudo out/keylogger --dev /dev/input/event7\n```\n\nThere is a list of options available\n\n| Option     | Default Value       | Description                     |\n| ---------- | ------------------- | ------------------------------- |\n| `--dev`    | `/dev/input/event*` | Specify the device event to use |\n| `--printk` |                     | Show keystrokes in terminal     |\n| `--port`   | `33300`             | Specify websocket port          |\n\n### WebSocket Secure (wss)\n\nThe keylogger server also supports secure WebSocket connections. Set an environment variable with the path to your certificate and private key files.\n\n```sh\n# Required\nexport KEYLOGGER_SSL_CERT_PATH=PATH_TO_CERT.pem\nexport KEYLOGGER_SSL_KEY_PATH=PATH_TO_KEY.pem\n# Optional\nexport KEYLOGGER_SSL_CA_PATH=\n```\n\n```html\n\u003c!-- Just create an index.html file as a client to receive keystrokes from the server --\u003e\n\u003c!doctype html\u003e\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003cstyle\u003e\u003c/style\u003e\n        \u003cscript defer\u003e\n            const ws = new WebSocket(\"wss://localhost:33300\");\n            ws.onmessage = ({ data }) =\u003e {\n                // Do something..\n            };\n        \u003c/script\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003c!-- Design your own keystrokes --\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n\u003e [!NOTE]\n\u003e\n\u003e Please note that you also need to add the authority certificate file to the browser you are using.\n\u003e This file is usually in the `.crt` format.\n\n#### Example\n\nA keylogger used as an overlay in OBS:\n\n![Keylogger overlay OBS](./sample-obs-overlay.gif)\n\n### Test\n\n```sh\nmake test\n```\n\n### Rootless\n\n\u003e [!WARNING]\n\u003e\n\u003e Rootless method gives you direct access to your keyboard.\n\nTo run rootless, follow these steps:\n\n1. Create a udev rules file (for example, /etc/udev/rules.d/90-keylogger.rules)\n\n    ```sh\n    echo \"SUBSYSTEM==\\\"input\\\", OWNER=\\\"$USER\\\", MODE=\\\"0660\\\"\" | sudo tee /etc/udev/rules.d/90-keylogger.rules \u003e /dev/null\n    ```\n\n1. Reload udev rules\n    ```sh\n    sudo udevadm control --reload-rules\n    sudo udevadm trigger\n    ```\n\n## Formatter\n\n`~/.clang-format` base from [Google](https://google.github.io/styleguide/cppguide.html)\n\n```\nBasedOnStyle: Google\nIndentWidth: 4\nColumnLimit: 120\n```\n\n_In Google i trust_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryhkml%2Fkeylogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryhkml%2Fkeylogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryhkml%2Fkeylogger/lists"}