https://github.com/dustinspecker/setuid-example
https://dustinspecker.com/posts/setuid-elevating-privileges/
https://github.com/dustinspecker/setuid-example
Last synced: 3 months ago
JSON representation
https://dustinspecker.com/posts/setuid-elevating-privileges/
- Host: GitHub
- URL: https://github.com/dustinspecker/setuid-example
- Owner: dustinspecker
- License: mit
- Created: 2020-07-30T01:17:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T16:36:25.000Z (almost 5 years ago)
- Last Synced: 2024-12-28T10:39:13.024Z (6 months ago)
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# setuid-example
## Usage
1. Clone this repository and navigate to root of this project
1. Run `go build main.go`
1. Run `./main`
- You'll be shown a sad face and error message
1. Run `sudo ./main` to verify everything works.
1. Run `sudo chown root ./main`
1. Run `sudo chmod u+s ./main`
1. Run `./main` and it will run as root now