{"id":20290639,"url":"https://github.com/notdodo/localadminsharp","last_synced_at":"2025-04-11T11:02:52.712Z","repository":{"id":65552504,"uuid":"443517146","full_name":"notdodo/LocalAdminSharp","owner":"notdodo","description":".NET executable to use when dealing with privilege escalation on Windows to gain local administrator access","archived":false,"fork":false,"pushed_at":"2022-11-01T17:45:43.000Z","size":10,"stargazers_count":156,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-25T07:23:42.629Z","etag":null,"topics":["backdoor","csharp","privesc","privilege-escalation","redteam"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/notdodo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-01T10:35:09.000Z","updated_at":"2025-02-25T04:59:05.000Z","dependencies_parsed_at":"2023-01-29T01:25:10.487Z","dependency_job_id":null,"html_url":"https://github.com/notdodo/LocalAdminSharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notdodo%2FLocalAdminSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notdodo%2FLocalAdminSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notdodo%2FLocalAdminSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notdodo%2FLocalAdminSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notdodo","download_url":"https://codeload.github.com/notdodo/LocalAdminSharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248381718,"owners_count":21094525,"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":["backdoor","csharp","privesc","privilege-escalation","redteam"],"created_at":"2024-11-14T15:08:34.532Z","updated_at":"2025-04-11T11:02:52.677Z","avatar_url":"https://github.com/notdodo.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LocalAdminSharp\n.NET executable to use when dealing with privilege escalation on Windows to gain local administrator access. This simple tool creates a new user adds it to the local administrator group; if the user exists it will just be added to the admin group.\nYou can also edit the code to add a domain user to the local administrator group editing the variable `domain`.\n\n## Build\nOpen the solution in Visual Studio (tested only on Visual Studio 2019 Community Edition) and compile the EXE for the desired architecture (x86, x64); in the Release mode the PBD file is removed.\n\n## Customize\nTo create custom user just edit the file `Program.cs` with the desired username, password, group and domain.\n\n## Usage\n* Standalone: `.\\LocalAdminSharp.exe`\n* Chain: use the EXE to be executed from another script/tool (i.e. for privescs)\n\n## Analysis\n\nThe PBD file is removed when compiling in Release mode and Windows Defender does not detect it as malicious (yet). Obfuscation should be used after the compilation to avoid easy RE using, for example, dnSpy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotdodo%2Flocaladminsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotdodo%2Flocaladminsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotdodo%2Flocaladminsharp/lists"}