{"id":29406302,"url":"https://github.com/xeroxp/redbuttonservice","last_synced_at":"2025-07-10T23:19:55.391Z","repository":{"id":303807514,"uuid":"1016751725","full_name":"XeroXP/RedButtonService","owner":"XeroXP","description":"A windows service that erase data","archived":false,"fork":false,"pushed_at":"2025-07-09T14:30:33.000Z","size":1775,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-09T14:51:48.995Z","etag":null,"topics":["csharp","dotnet","erase","eraser","netcore","service","telegram","telegrambot","windows","windows-service"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XeroXP.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}},"created_at":"2025-07-09T13:21:59.000Z","updated_at":"2025-07-09T14:43:29.000Z","dependencies_parsed_at":"2025-07-09T14:51:51.266Z","dependency_job_id":"35a1f32d-b5f0-4f00-bbab-6fa6c728cb1c","html_url":"https://github.com/XeroXP/RedButtonService","commit_stats":null,"previous_names":["xeroxp/redbuttonservice"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/XeroXP/RedButtonService","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XeroXP%2FRedButtonService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XeroXP%2FRedButtonService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XeroXP%2FRedButtonService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XeroXP%2FRedButtonService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XeroXP","download_url":"https://codeload.github.com/XeroXP/RedButtonService/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XeroXP%2FRedButtonService/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264686768,"owners_count":23649564,"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":["csharp","dotnet","erase","eraser","netcore","service","telegram","telegrambot","windows","windows-service"],"created_at":"2025-07-10T23:19:54.399Z","updated_at":"2025-07-10T23:19:55.369Z","avatar_url":"https://github.com/XeroXP.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RedButtonService\n\nIt is a windows service that erase data by multiple triggers.\n\n## Installing\n\nRequires `.NET 8`. [click](https://dotnet.microsoft.com/ru-ru/download/dotnet/8.0)\n\nInstall `.NET`, then just install msi from [releases page](../../releases) (or build installer yourself).\n\nInstallation directory - `%ProgramFiles%\\XeroXP\\RedButtonService\\`\n\n## Configuration\n\nAll configuration of service is in json files:\n\n- *appsettings.json*\n- *service.json*\n\n### service.json\n\nMain config:\n\n```\n{\n  \"Telegram\": {\n    \"Token\": \"\", //Telegram bot token from @BotFather\n    \"AdminIds\": [ \"111111111\" ] //Ids of admins that can use the most sensitive commands\n  },\n  \"USBTrigger\": {\n    \"FileName\": \"erase\", //Name of the file that service will be search (and trigger erase if not found)\n    \"TimeCheckSeconds\": 60 //A repeating period of time after which the program searches for a file\n  },\n  \"UserLogonTrigger\": {\n    \"Usernames\": [ \"SpecialUser\" ] //Windows usernames whose login will trigger erase\n  },\n  \"Eraser\": {\n    \"MaxTasks\": 3, //USBTrigger can trigger erase event each second - this field can stop it (only 3 erase tasks can be in queue)\n    \"TimeStatusSendMinutes\": 5, //Status of running erase task can be sent in telegram, and this is the period of time when it sends (0 - if you don't want to receive that status)\n    \"ToErase\": [ //Erase task that can contain many files, directories or drives\n      {\n        \"Type\": \"File\",\n        \"File\": \"F:\\\\test.txt\"\n      },\n      {\n        \"Type\": \"Dir\",\n        \"Dir\": \"F:\\\\test\"\n      },\n      {\n        \"Type\": \"RecycleBin\"\n      },\n      {\n        \"Type\": \"Unused\",\n        \"Drive\": \"E:\\\\\"\n      },\n      {\n        \"Type\": \"Drive\",\n        \"Drive\": \"E:\\\\\"\n      },\n      {\n        \"Type\": \"Drive\",\n        \"VolumeId\": \"\\\\\\\\?\\\\Volume{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\\\\\"\n      }\n    ]\n  }\n}\n```\n\n\u003e Example\n\n```\n{\n  \"Telegram\": null, //we can disable telegram\n  \"USBTrigger\": null, //we can disable usb trigger\n  \"UserLogonTrigger\": { //we can also disable user logon trigger by setting null, but one of the triggers needs to be left, otherwise there will be no point in the service\n    \"Usernames\": [ \"SpecialUser\" ]\n  },\n  \"Eraser\": {\n    ...\n  }\n}\n```\n\n## Logging\n\nAll logs are in `service.log` files.\n\n## Telegram bot\n\nYou can receive all erase trigger events and statuses.\n\nBot have some commands to control over service.\n\n### Commands\n\n- */help*    - help\n- */debug*   - send debug info\n- */erase*   - trigger erase\n- */cancel*  - cancel running erase task\n- */disable* - disable erase\n- */enable*  - enable erase\n- */log_off* - log off all windows sessions\n- */silent*  - disable notifications\n- */loud*    - enable notifications\n- */restart* - restart windows service\n\n## Credits\n\nCore:\n\n- [cklutz/LockCheck](https://github.com/cklutz/LockCheck)\n- [Eraser](https://sourceforge.net/p/eraser/code/HEAD/tree/)\n\n## Contributors\n\n[XeroXP](../../../).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxeroxp%2Fredbuttonservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxeroxp%2Fredbuttonservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxeroxp%2Fredbuttonservice/lists"}