https://github.com/kataras/ultrasecurity
10 seconds post-login OS security
https://github.com/kataras/ultrasecurity
go golang open-source security windows windows11
Last synced: 5 months ago
JSON representation
10 seconds post-login OS security
- Host: GitHub
- URL: https://github.com/kataras/ultrasecurity
- Owner: kataras
- License: mit
- Created: 2024-09-30T17:52:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T20:18:04.000Z (over 1 year ago)
- Last Synced: 2026-02-08T06:17:18.387Z (5 months ago)
- Topics: go, golang, open-source, security, windows, windows11
- Language: Inno Setup
- Homepage:
- Size: 239 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
UltraSecurity
[](https://github.com/kataras/ultrasecurity/actions/workflows/ci.yml)
**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.
### Features
- **Folder Monitoring**: Checks for the existence of a folder named `letsgo` on the desktop.
- **Automatic Shutdown**: Initiates a system shutdown if the folder is not found within the specified time frame.
- **Administrative Privileges**: Requests and utilizes administrative privileges to perform the shutdown operation.
- **Silent Operation**: Runs without opening a console window, ensuring a seamless user experience.
- **Customizable Folder Name**: Allows customization of the folder name through build tags.
- **Customizable Timeout**: Allows customization of the timeout duration through build tags.
### Usage
1. **[Download the executable](https://github.com/kataras/ultrasecurity/releases)** or build the executable from source:
```sh
go build -ldflags="-H=windowsgui -s -w" -o ultrasecurity.exe .
```
Build the Executable with Custom Folder Name and Timeout
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:
```sh
go build -tags "folder timeout" -ldflags="-X main.folder=letsgo -X main.timeout=15s -H=windowsgui -s -w" -o ultrasecurity.exe .
```
### Requirements
- **Operating System**: Windows 11
- **Go**: Version 1.23 or higher
2. **Place in Startup Folder**:
Copy the `ultrasecurity.exe` to the Windows startup folder:
```sh
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
# Or press Win + R, type shell:startup, and press Enter
# and move the executable to the opened folder.
```
> 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.
## License
This project is licensed under the [MIT License](LICENSE).