{"id":13439584,"url":"https://github.com/caseyscarborough/keylogger","last_synced_at":"2026-03-11T22:54:53.644Z","repository":{"id":10662565,"uuid":"12895606","full_name":"caseyscarborough/keylogger","owner":"caseyscarborough","description":"A no-frills keylogger for macOS.","archived":false,"fork":false,"pushed_at":"2022-06-27T21:17:37.000Z","size":27,"stargazers_count":608,"open_issues_count":11,"forks_count":171,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-03-20T08:40:13.091Z","etag":null,"topics":["c","keylogger"],"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/caseyscarborough.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}},"created_at":"2013-09-17T13:15:38.000Z","updated_at":"2025-03-09T04:00:52.000Z","dependencies_parsed_at":"2022-09-22T21:02:44.452Z","dependency_job_id":null,"html_url":"https://github.com/caseyscarborough/keylogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/caseyscarborough/keylogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseyscarborough%2Fkeylogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseyscarborough%2Fkeylogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseyscarborough%2Fkeylogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseyscarborough%2Fkeylogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caseyscarborough","download_url":"https://codeload.github.com/caseyscarborough/keylogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseyscarborough%2Fkeylogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30406385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","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"],"created_at":"2024-07-31T03:01:15.325Z","updated_at":"2026-03-11T22:54:53.622Z","avatar_url":"https://github.com/caseyscarborough.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# macOS Keylogger\n\nThis repository holds the code for a simple and easy to use keylogger for macOS. It is not meant to be malicious, and is written as a proof of concept. There is not a lot of information on keyloggers or implementing them on macOS, and most of the ones I've seen do not work as indicated. This project aims to be a simple implementation on how it can be accomplished on OS X.\n\n\u003e Note: This keylogger is currently unable to capture secure input such as passwords. See issue #3 for more information.\n\n## Usage\n\nStart by cloning the repository and running the proper make commands, shown below. By default, the application installs to `/usr/local/bin/keylogger`, which can easily be changed in the [`Makefile`](https://github.com/caseyscarborough/keylogger/blob/master/Makefile). `make install` may require root access.\n\n```bash\n$ git clone https://github.com/caseyscarborough/keylogger \u0026\u0026 cd keylogger\n$ make \u0026\u0026 make install\n```\n\nThe application by default logs to `/var/log/keystroke.log`, which may require root access depending on your system's permissions. You can change this in [`keylogger.h`](https://github.com/caseyscarborough/keylogger/blob/master/keylogger.h#L12) if necessary.\n\n```bash\n$ keylogger\nLogging to: /var/log/keystroke.log\n```\n\nIf only modifier keys are logging (e.g. in macOS ≥ 10.10), run with root access.\n\nIf you'd like the application to run in the background on startup, run the `startup` make target:\n\n```bash\n$ sudo make startup\n```\n\nTo run the application now (note: you will need to run the `sudo make startup` command first):\n\n```bash\n$ sudo make load\n```\n\nTo quit the application now (note: you will need to run the `sudo make startup` command first)::\n\n```bash\n$ sudo make unload\n```\n\n## Uninstallation\n\nYou can completely remove the application from your system (including the startup daemon) by running the following command (logs will not be deleted):\n\n```bash\n$ sudo make uninstall\n```\n\n### Optional Parameters\n\nYou can pass in two optional parameters to the program. The `clear` option will clear the logs at the default location. Any other argument passed in will be used as the path to the log file for that process. See below:\n\n```bash\n# Clear the logfile.\n$ keylogger clear\nLogfile cleared.\n\n# Specify a logfile location.\n$ keylogger ~/logfile.txt\nLogging to: /Users/Casey/logfile.txt\n```\n\n## Issues\n\n### Unable to Create Event Tap\n\nIf you get the following error:\n\n```\nERROR: Unable to create event tap.\n```\n\nGo into System Preferences and go to Security \u0026 Privacy, click the Privacy tab, choose Accessibility in the left pane, and ensure that Terminal is checked.\n\n## Contributing\n\nFeel free to fork the project and submit a pull request with your changes!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseyscarborough%2Fkeylogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaseyscarborough%2Fkeylogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseyscarborough%2Fkeylogger/lists"}