{"id":19544864,"url":"https://github.com/ariary/shuid","last_synced_at":"2026-02-01T23:33:30.343Z","repository":{"id":45842454,"uuid":"514379061","full_name":"ariary/shuid","owner":"ariary","description":"Nim project for Persistence \u0026 Privesc using S(hadow)UIDs files 👤","archived":false,"fork":false,"pushed_at":"2022-08-28T10:34:05.000Z","size":498,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T16:20:39.875Z","etag":null,"topics":["binfmt","nim","pentest","persistence","redteam","redteam-tools"],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ariary.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":"2022-07-15T19:11:38.000Z","updated_at":"2023-09-21T17:55:32.000Z","dependencies_parsed_at":"2022-07-26T08:02:07.303Z","dependency_job_id":null,"html_url":"https://github.com/ariary/shuid","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ariary/shuid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fshuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fshuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fshuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fshuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariary","download_url":"https://codeload.github.com/ariary/shuid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariary%2Fshuid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28994918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T23:10:54.274Z","status":"ssl_error","status_checked_at":"2026-02-01T23:10:47.298Z","response_time":56,"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":["binfmt","nim","pentest","persistence","redteam","redteam-tools"],"created_at":"2024-11-11T03:32:40.492Z","updated_at":"2026-02-01T23:33:30.330Z","avatar_url":"https://github.com/ariary.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n\u003cimg src=./img/icon2.png\u003e\n\u003csup\u003e*\u003ci\u003e«shuid» stands for shadow SUID file\u003c/i\u003e\u003c/sup\u003e\n\u003cpre\u003e\u003ccode\u003e\u003cstrong\u003ePrivileged persistence \n\u003cbr\u003ewithout using noisy and detectable SUID \n\u003cbr\u003eusing \u003ci\u003ebinfmt\u003c/i\u003e Kernel feature instead\u003c/strong\u003e\nAlso a good way to learn Nim and something new\n\u003c/code\u003e\u003c/pre\u003e\n\u003c/div\u003e\n\n|👁️ Persistence demo|\n|:---:| \n|![demo](img/shuid-demo.gif)|\n\n***Note:** You are now able to make the SUID file run w/o changing its normal behavior with the go interpreter (`./build.sh [PAYLOAD] [RULE_NAME] go`)*\n\n## Like at home! 🏡 \u003csup\u003e(persistence)\u003c/sup\u003e\n\n* Build `shuid` (needs `nim` + `go` or `gcc`):\u003cbr\u003e\u003cpre\u003e\u003ccode\u003e./build.sh [PERSISTENCE_CMD] [RULE_NAME] [INTERPRETER_LANG] \n\u003cbr\u003e# [INTERPRETER_LANG]=go or c or nim (go is best for now) \u003c/code\u003e\u003c/pre\u003e\n* Transfer it on target\n* Run it!\u003cbr\u003e\u003cpre\u003e\u003ccode\u003esudo ./shuid\u003c/code\u003e\u003c/pre\u003e\n\nAnd that's all, you are under the radar. The process to trigger the persistence payload will be outputted\n\n## Road to root! 🛣 \u003csup\u003e(privesc)\u003c/sup\u003e\n\nUnder certain circumstances, the trick can be used to gain elevated privileged. You can test it with:\n\n```shell\n./shuid --privesc\n```\n\n## [Understand the trick](TRICK.md)\n\n\n\n\u003cdiv align=center\u003e\n\u003csup\u003e\nAll credits goes to \u003ca href= https://github.com/Sentinel-One/shadowsuid/\u003eDor Dankner\u003c/a\u003e, \u003ca href= https://github.com/toffan/binfmt_misc\u003etoffan\u003c/a\u003e and \u003ca href= https://www.hackthebox.com/home/users/profile/590762\u003euco2KFH\u003c/a\u003e \n\u003c/sup\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariary%2Fshuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariary%2Fshuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariary%2Fshuid/lists"}