{"id":37960009,"url":"https://github.com/criyle/go-judge-win-test","last_synced_at":"2026-01-16T18:03:30.287Z","repository":{"id":132418561,"uuid":"252372732","full_name":"criyle/go-judge-win-test","owner":"criyle","description":"Test code that might used in go-judge in the future as support for windows","archived":false,"fork":false,"pushed_at":"2020-04-25T01:31:04.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-10T06:17:01.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/criyle.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}},"created_at":"2020-04-02T06:22:59.000Z","updated_at":"2024-08-03T13:53:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4ab02e0-c716-4a54-9a18-abd9bfede914","html_url":"https://github.com/criyle/go-judge-win-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/criyle/go-judge-win-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criyle%2Fgo-judge-win-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criyle%2Fgo-judge-win-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criyle%2Fgo-judge-win-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criyle%2Fgo-judge-win-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/criyle","download_url":"https://codeload.github.com/criyle/go-judge-win-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criyle%2Fgo-judge-win-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":[],"created_at":"2026-01-16T18:03:30.200Z","updated_at":"2026-01-16T18:03:30.274Z","avatar_url":"https://github.com/criyle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-judge-win-test\n\nTest code that might used in [go-judge](https://github.com/criyle/go-judge)/executorserver in the future as a support for windows platform.\n\n## Current Design\n\n- [x] Create [Job Object](https://docs.microsoft.com/en-ca/windows/win32/procthread/job-objects) and apply cpu \u0026 memory \u0026 active process limitation\n- [x] Create IOCP Message Queue\n- [x] Create Pipe for Stdin, Stdout, Stderr\n- [x] Create Process (As User)\n- [x] Create Desktop\n- [x] Wait On Exit Message\n- [ ] Create restricted user environment\n- [ ] Get Running Result From [JOBOBJECT_EXTENDED_LIMIT_INFORMATION](https://docs.microsoft.com/en-ca/windows/win32/api/winnt/ns-winnt-jobobject_extended_limit_information)\n\n## Security\n\n- [ ] Job Object can be escaped from through Win32_Process.Create\n- [ ] File system is not isolated\n- [ ] Process list table is not isolated\n\n## Ideas\n\n- [ ] Windows container by [HCS](https://github.com/microsoft/hcsshim)\n- [ ] Run on [windows sandbox](https://techcommunity.microsoft.com/t5/windows-kernel-internals/windows-sandbox/ba-p/301849)\n- [ ] Run on [docker for windows](https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/) [Talk on YouTube](https://www.youtube.com/watch?v=85nCF5S8Qok)\n\n## Reference\n\n- Win API: [golang.org/x/sys/windows](https://godoc.org/golang.org/x/sys/windows)\n- Win API that are missing: [contester/runlib](https://github.com/contester/runlib)\n- [CreateProcessAsUserW](https://docs.microsoft.com/en-ca/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessasuserw)\n- [iceb0y/windows-container](https://github.com/iceb0y/windows-container) / core\n- [kernelbin/BOIT](https://github.com/kernelbin/BOIT) / BOIT Server / Simple sandbox\n- [Chromium Sandbox](https://chromium.googlesource.com/chromium/src/+/master/docs/design/sandbox.md)\n\n## Windows Access Control Model\n\n- [Security Model](https://docs.microsoft.com/en-us/windows/win32/secauthz/access-control-components)\n\n### Access Token\n\n- [Access Token](https://docs.microsoft.com/en-us/windows/win32/secauthz/access-tokens)\n- Security Identifier (SID) for user / groups / logon session / owner / primary group\n- Privilleges\n- Default DACL\n- Source of the access token\n- Primary / impersonation token\n- Restricting SIDs\n- Current impersonation levels\n\n### Security Descriptor\n\nFor a securable object. Contains\n\n- Discretionary Access Contol List (DACL)\n- System Access Control List (SACL)\n\nACL contains list of Access Control Entries (ACE) with access rights and trustee.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcriyle%2Fgo-judge-win-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcriyle%2Fgo-judge-win-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcriyle%2Fgo-judge-win-test/lists"}