{"id":20666838,"url":"https://github.com/arkamar/ptkl","last_synced_at":"2025-08-25T07:15:29.948Z","repository":{"id":83480841,"uuid":"218106728","full_name":"arkamar/ptkl","owner":"arkamar","description":"Pseudo Terminal Key Logger","archived":false,"fork":false,"pushed_at":"2020-06-03T23:39:42.000Z","size":18,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T13:16:45.141Z","etag":null,"topics":["keylogger","pts","pty"],"latest_commit_sha":null,"homepage":"","language":"C","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/arkamar.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":"2019-10-28T17:30:13.000Z","updated_at":"2022-04-21T11:36:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6bc6367-c056-40b4-b469-91929647d431","html_url":"https://github.com/arkamar/ptkl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkamar%2Fptkl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkamar%2Fptkl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkamar%2Fptkl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arkamar%2Fptkl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arkamar","download_url":"https://codeload.github.com/arkamar/ptkl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242856023,"owners_count":20196360,"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":["keylogger","pts","pty"],"created_at":"2024-11-16T19:41:59.469Z","updated_at":"2025-03-10T13:13:55.312Z","avatar_url":"https://github.com/arkamar.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ptkl - Pseudo Terminal Key Logger\n\n**Beware!** This is very early stage of `LD_PRELOAD` based pseudo terminal key logger.\n\nIt overwrites `write` and `writev` libc functions and copies all data as they are to a file descriptor 100 from them for all fds pointing to `/dev/ptmx`.\nFile descriptor 100 is expected to be open in advance (use shell redirection `100\u003e\u00262` for example).\nEvery logged write is prepended with PID, function name, fd number and amount of written data.\nFor example:\n```\n201: write: fd: 7: size: 1: s\n```\nwhere process with PID `201` wrote with function `write` to the file descriptor `7` one byte `s`.\n\n---\n\nBuild with\n```\nmake\n```\n\nRun following command to log ssh sessions.\n```sh\n./ptklify /usr/sbin/sshd -De 100\u003e\u00262\n```\n\nDocker test cheat sheet:\n```\ndocker build --tag=sshd .\ndocker run --rm --name=sshd sshd\nssh -o UserKnownHostsFile=kh root@172.17.0.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkamar%2Fptkl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farkamar%2Fptkl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farkamar%2Fptkl/lists"}