{"id":13446789,"url":"https://github.com/mattn/sudo","last_synced_at":"2025-04-05T00:10:17.847Z","repository":{"id":46052379,"uuid":"93613006","full_name":"mattn/sudo","owner":"mattn","description":"sudo for windows","archived":false,"fork":false,"pushed_at":"2021-11-17T14:55:23.000Z","size":35,"stargazers_count":755,"open_issues_count":8,"forks_count":37,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-28T23:09:14.514Z","etag":null,"topics":["go","golang","sudo","website"],"latest_commit_sha":null,"homepage":"","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/mattn.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":"2017-06-07T08:45:36.000Z","updated_at":"2025-01-30T00:12:01.000Z","dependencies_parsed_at":"2022-08-29T19:31:34.815Z","dependency_job_id":null,"html_url":"https://github.com/mattn/sudo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattn%2Fsudo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattn%2Fsudo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattn%2Fsudo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattn%2Fsudo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattn","download_url":"https://codeload.github.com/mattn/sudo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266565,"owners_count":20910836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","sudo","website"],"created_at":"2024-07-31T05:00:59.990Z","updated_at":"2025-04-05T00:10:17.826Z","avatar_url":"https://github.com/mattn.png","language":"Go","readme":"# sudo\n\nsudo for windows\n\n## Usage\n\n```\nC:\\\u003esudo cmd /c dir\n```\n\nThen, you'll see the UAC dialog.\n\n## Tutorials\n\n### Display contents of file which can't access from you\n\n```\nsudo cmd /c type secret-file.txt \u003e accessible-file.txt\n```\n\n### Pipe from/to stream\n\n```\necho 123 | sudo my-command.exe | more\n```\n\n### Change IP address\n\n```\nsudo netsh interface ip add address \"Local Area Connection\" 33.33.33.33 255.255.255.255\n```\n\n### Edit hosts file\n\n```\nsudo notepad c:\\windows\\system32\\drivers\\etc\\hosts\n```\n\n### Create admin's console\n\n```\nsudo\n```\n\n## Installation\n\n```\ngo install github.com/mattn/sudo@latest\n```\n\nrequirement go1.8 or later.\n\nOr download from [release](https://github.com/mattn/sudo/releases) tab.\n\n## License\n\nMIT\n\n## Author\n\nYasuhiro Matsumoto (a.k.a. mattn)\n","funding_links":[],"categories":["Go","CLI Utilities","Windows","Repositories"],"sub_categories":["单文件工具"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattn%2Fsudo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattn%2Fsudo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattn%2Fsudo/lists"}