{"id":25629418,"url":"https://github.com/objective-see/sniffMK","last_synced_at":"2025-02-22T19:17:40.467Z","repository":{"id":44006774,"uuid":"100752130","full_name":"objective-see/sniffMK","owner":"objective-see","description":"sniff mouse and keyboard events","archived":false,"fork":false,"pushed_at":"2021-02-01T06:53:55.000Z","size":27,"stargazers_count":217,"open_issues_count":1,"forks_count":46,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-02-14T22:22:23.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/objective-see.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-18T21:40:19.000Z","updated_at":"2025-01-17T00:35:32.000Z","dependencies_parsed_at":"2022-07-09T14:46:17.549Z","dependency_job_id":null,"html_url":"https://github.com/objective-see/sniffMK","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/objective-see%2FsniffMK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objective-see%2FsniffMK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objective-see%2FsniffMK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objective-see%2FsniffMK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objective-see","download_url":"https://codeload.github.com/objective-see/sniffMK/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240222472,"owners_count":19767461,"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":[],"created_at":"2025-02-22T19:17:19.999Z","updated_at":"2025-02-22T19:17:40.462Z","avatar_url":"https://github.com/objective-see.png","language":"Objective-C","readme":"# sniffMK\n`sniffMK` is a simple utility designed to sniff mouse and keyboard events on macOS. It is based on code from amit singh's website; (http://osxbook.com)\n\nIt was designed to facilitate malware analysis (specifically OSX/FruitFly which can simulate both mouse and keyboard events - see BlackHat/DefCon [slides](https://speakerdeck.com/patrickwardle/fruitfly-via-a-custom-c-and-c-server?slide=18) for details). \n\nRun `sniffMK`, as root, to start sniffing events:\n```\n# ./sniffMK\nmouse/keyboard sniffer\nbased on code from amit singh (http://osxbook.com)\n\nevent: left mouse down\nx: 821.285156\ny: 727.726562\n\nevent: left mouse up\nx: 821.285156\ny: 727.726562\n\nevent: key down\nkey modifiers: shift \nkeycode: 0x4/h\n\nevent: key up\nkeycode: 0x4/h\n\nevent: key down\nkeycode: 0x22/i\n\nevent: key up\nkeycode: 0x22/i\n\n....\n\nevent: key down\nkey modifiers: control \nkeycode: 0x8/c\n```\nTo only capture mouse events, execute `sniffMK` with the `-mouse` commandline argument.\u003cbr\u003e\nSimilarly, execute it with the `-keyboard` commandline argument to only capture keyboard events.\n  \n","funding_links":[],"categories":["Objective-C","Operating Systems"],"sub_categories":["macOS/iOS"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjective-see%2FsniffMK","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjective-see%2FsniffMK","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjective-see%2FsniffMK/lists"}