{"id":27761096,"url":"https://github.com/tsoding/voidf","last_synced_at":"2025-10-23T20:26:41.233Z","repository":{"id":50121164,"uuid":"318507156","full_name":"tsoding/voidf","owner":"tsoding","description":"V̳͙̥̹̟͗̀̎̓͌͐́O̘̞͇̞̣͇͕͂͠I͙̋͐̍͂̀D̶͕̩̦̲͙F̟̖̮ͩ̏ͥ̂ͨ͠ ͍̰̫̯͙̯ͨ̉ͤ̈̿ͭI̤͍̲̯ͤ̎̀͝S̴̻͇̳̗̩ͧ̆ ̭̘̦ͭ͒Ĉ̸̰̼̤̖̲O̹̭̞̺̻͚̣̒M̪͓̗̤͋͢Ĩ͔̗̣̻̄̏̏̏̚N̳̦̂ͯ̅͂̓̈́G͈̣","archived":false,"fork":false,"pushed_at":"2021-06-03T19:17:44.000Z","size":208,"stargazers_count":37,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-29T12:29:14.583Z","etag":null,"topics":[],"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/tsoding.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}},"created_at":"2020-12-04T12:17:40.000Z","updated_at":"2025-03-03T14:03:33.000Z","dependencies_parsed_at":"2022-09-25T13:44:35.302Z","dependency_job_id":null,"html_url":"https://github.com/tsoding/voidf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsoding/voidf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Fvoidf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Fvoidf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Fvoidf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Fvoidf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsoding","download_url":"https://codeload.github.com/tsoding/voidf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Fvoidf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280685179,"owners_count":26373214,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-04-29T12:26:15.217Z","updated_at":"2025-10-23T20:26:41.201Z","avatar_url":"https://github.com/tsoding.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# voidf\n\n## Quick Start\n\n```console\n$ make\n$ ./voidf\n```\n\n## setuid/setgid support\n\nThe application supports temporary privilege escalation via setuid/setgid bits. It uses the privilege only to scan `/dev/input/*` folder and open the selected input device. After that it lowers its privilege down to its real uid/gid and continues to function like a regular user application.\n\n### setuid example\n\n```\n# cp voidf /usr/local/bin\n# chown root:root /usr/local/bin/voidf\n# chmod 4755 /usr/local/bin/voidf\n```\n\n### setgid example on Debian\n\nOn my Debian Stale 10 I have a group called `input` that has the access to `/dev/input/*` files. So this is what I do on my machine:\n\n```\n# cp voidf /usr/local/bin\n# chown root:input /usr/local/bin/voidf\n# chmod g+s /usr/local/bin/voidf\n```\n\nThis way voidf is never ran with root privileges. It is only ran with temporary `input` group privilege just to open the input device file.\n\n## Controls\n\nTo increment the counter you have to type the sequence of characters `voidf`. Focus on the main window is not required.\n\nThe following actions do require the window focus tho:\n\n| Shortcut | Description |\n| --- | --- |\n| \u003ckbd\u003eF5\u003c/kbd\u003e | Reset the counter |\n| \u003ckbd\u003eCtrl + Z\u003c/kbd\u003e | Undo the counter reset |\n\n## References\n\n- https://github.com/freedesktop-unofficial-mirror/evtest/blob/b8343ec1124da18bdabcc04809a8731b9e39295d/evtest.c\n- https://www.gnu.org/software/libc/manual/html_node/Setuid-Program-Example.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsoding%2Fvoidf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsoding%2Fvoidf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsoding%2Fvoidf/lists"}