{"id":21812186,"url":"https://github.com/kataras/ultrasecurity","last_synced_at":"2026-02-14T12:36:43.264Z","repository":{"id":265026964,"uuid":"865546106","full_name":"kataras/ultrasecurity","owner":"kataras","description":"10 seconds post-login OS security","archived":false,"fork":false,"pushed_at":"2024-12-04T20:18:04.000Z","size":245,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-08T06:17:18.387Z","etag":null,"topics":["go","golang","open-source","security","windows","windows11"],"latest_commit_sha":null,"homepage":"","language":"Inno Setup","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/kataras.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"kataras"}},"created_at":"2024-09-30T17:52:24.000Z","updated_at":"2025-10-28T23:48:27.000Z","dependencies_parsed_at":"2025-04-13T23:10:42.259Z","dependency_job_id":"ebfa29cf-9250-4997-9584-862873ad4fec","html_url":"https://github.com/kataras/ultrasecurity","commit_stats":null,"previous_names":["kataras/ultrasecurity"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kataras/ultrasecurity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kataras%2Fultrasecurity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kataras%2Fultrasecurity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kataras%2Fultrasecurity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kataras%2Fultrasecurity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kataras","download_url":"https://codeload.github.com/kataras/ultrasecurity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kataras%2Fultrasecurity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"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":["go","golang","open-source","security","windows","windows11"],"created_at":"2024-11-27T14:14:40.403Z","updated_at":"2026-02-14T12:36:43.245Z","avatar_url":"https://github.com/kataras.png","language":"Inno Setup","funding_links":["https://github.com/sponsors/kataras"],"categories":[],"sub_categories":[],"readme":"\u003cdiv\u003e\u003cimg align=\"left\" src=\"ultrasecurity.png\" alt=\"Description\" width=\"36\" height=\"36\"\u003e \u003ch1\u003eUltraSecurity\u003c/h1\u003e\u003c/div\u003e\n\n[![build status](https://img.shields.io/github/actions/workflow/status/kataras/ultrasecurity/ci.yml?branch=main\u0026style=for-the-badge)](https://github.com/kataras/ultrasecurity/actions/workflows/ci.yml)\n\n**UltraSecurity** is a Go-based utility designed to enhance system security by monitoring the presence of a specific folder on the user's desktop. If the folder named `letsgo` is not found within 10 seconds of the program's execution, the system will automatically shut down. This tool is particularly useful for ensuring that certain security protocols are followed before allowing the system to remain operational.\n\n### Features\n\n- **Folder Monitoring**: Checks for the existence of a folder named `letsgo` on the desktop.\n- **Automatic Shutdown**: Initiates a system shutdown if the folder is not found within the specified time frame.\n- **Administrative Privileges**: Requests and utilizes administrative privileges to perform the shutdown operation.\n- **Silent Operation**: Runs without opening a console window, ensuring a seamless user experience.\n- **Customizable Folder Name**: Allows customization of the folder name through build tags.\n- **Customizable Timeout**: Allows customization of the timeout duration through build tags.\n\n### Usage\n\n1. **[Download the executable](https://github.com/kataras/ultrasecurity/releases)** or build the executable from source:\n    ```sh\n    go build -ldflags=\"-H=windowsgui -s -w\" -o ultrasecurity.exe .\n    ```\n\n    \u003cdetails\u003e\u003csummary\u003eBuild the Executable with Custom Folder Name and Timeout\u003c/summary\u003e\u003cbr/\u003e\n\n    Use the -tags flag to specify the build tags and the -ldflags flag to pass the custom folder name and timeout when building your executable:\n    ```sh\n    go build -tags \"folder timeout\" -ldflags=\"-X main.folder=letsgo -X main.timeout=15s -H=windowsgui -s -w\" -o ultrasecurity.exe .\n    ```\n\n    ### Requirements\n\n    - **Operating System**: Windows 11\n    - **Go**: Version 1.23 or higher\n\n\u003c/details\u003e\n\n2. **Place in Startup Folder**:\n    Copy the `ultrasecurity.exe` to the Windows startup folder:\n    ```sh\n    C:\\Users\\%USERNAME%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\n    # Or press Win + R, type shell:startup, and press Enter\n    # and move the executable to the opened folder.\n    ```\n\n    \u003e This will ensure that the script runs every time the computer starts up. If the folder \"letsgo\" is not created on the desktop within 10 seconds, the computer will shut down.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n\u003c!--\n\nTo add a logo or icon to the final executable built by the go build command, especially for Windows executables, you can follow these steps:\n\n1. *Prepare the Icon*: Create or obtain an icon file in .ico format.\n\n2. *Generate .syso File*: Use a tool like rsrc to embed the icon into a .syso file. You can install rsrc using:\n   \ngo install github.com/akavel/rsrc@latest\n   Then, generate the .syso file:\n   \nrsrc -arch arm64 -ico youricon.ico -o rsrc.syso\n\n3. *Build the Go Program*: Place the generated rsrc.syso file in the same directory as your Go source code. When you run the go build command, it will automatically include the .syso file in the final executable:\n   \ngo build -o yourprogram.exe\n\nThis process will embed the icon into your Windows executable⁴.\n\n--\u003e\n\n\u003c!--\n\n`go build` does not have a `-manifest` flag. Instead, you we use a different approach to embed the manifest file into your executable.\n\n1. **Create the Manifest File**: Save the following XML content into a file named `ultrasecurity.manifest`:\n\n    ```xml\n    \u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?\u003e\n    \u003cassembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\"\u003e\n      \u003ctrustInfo xmlns=\"urn:schemas-microsoft-com:asm.v3\"\u003e\n        \u003csecurity\u003e\n          \u003crequestedPrivileges\u003e\n            \u003crequestedExecutionLevel level=\"requireAdministrator\" uiAccess=\"false\"/\u003e\n          \u003c/requestedPrivileges\u003e\n        \u003c/security\u003e\n      \u003c/trustInfo\u003e\n    \u003c/assembly\u003e\n    ```\n\n2. **Embed the Manifest File**: Use a tool like `rsrc` to embed the manifest file into your executable. First, install `rsrc`:\n\n    ```sh\n    go install github.com/akavel/rsrc@latest\n    ```\n\n    Then, generate a `.syso` file from the manifest:\n\n    ```sh\n    rsrc -manifest ultrasecurity.manifest -o ultrasecurity.syso\n    ```\n\n3. **Build the Executable**: Now, build your Go executable. The `.syso` file will be automatically included:\n\n    ```sh\n    go build -ldflags=\"-s -w\" -o ./binaries/ultrasecurity.exe .\n    ```\n\nThis process will ensure that your executable requests administrative privileges when run.\n\n--\u003e\n\n\u003c!--\n\nTo prevent the Windows Terminal from opening when your executable starts, you can build your Go application as a Windows GUI application. This will prevent the console window from appearing.\n\n```sh\ngo build -ldflags=\"-H=windowsgui -s -w\" -o ./binaries/ultrasecurity.exe .\n```\n\n--\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkataras%2Fultrasecurity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkataras%2Fultrasecurity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkataras%2Fultrasecurity/lists"}