{"id":13839641,"url":"https://github.com/newsoft/adduser","last_synced_at":"2026-02-05T13:13:17.270Z","repository":{"id":47480709,"uuid":"6652814","full_name":"newsoft/adduser","owner":"newsoft","description":"Programmatically create an administrative user under Windows","archived":false,"fork":false,"pushed_at":"2017-03-10T12:45:25.000Z","size":6,"stargazers_count":182,"open_issues_count":1,"forks_count":55,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-11T08:47:50.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/newsoft.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":"2012-11-12T12:10:42.000Z","updated_at":"2025-07-06T01:49:03.000Z","dependencies_parsed_at":"2022-08-28T13:40:59.709Z","dependency_job_id":null,"html_url":"https://github.com/newsoft/adduser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/newsoft/adduser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newsoft%2Fadduser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newsoft%2Fadduser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newsoft%2Fadduser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newsoft%2Fadduser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newsoft","download_url":"https://codeload.github.com/newsoft/adduser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newsoft%2Fadduser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29122595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2024-08-04T17:00:32.038Z","updated_at":"2026-02-05T13:13:17.251Z","avatar_url":"https://github.com/newsoft.png","language":"C","readme":"# adduser\n\nProgrammatically creates a 'local admin' Windows user. Requires admin rights. The created user is hardcoded to the following:\n\nLogin: `audit`\nPassword: `Test123456789!` (this should be good enough to fit most password policies)\n\nThis standalone piece code can run in many contexts:\n- As a command-line EXE.\n- As a DLL (the user will be created on DLL load). This is useful to exploit \"DLL Preloading\" issues.\n- As a DLL, through `rundll32.exe adduser.dll,CreateAdminUser@16`. This is useful to bypass mandatory code signing applied to EXE files only.\n\n## Compiling\n### Using MinGW (tested on macOS, but Linux should work)\n\n- Create a 32-bit EXE file:\n`i686-w64-mingw32-gcc -oadduser32.exe adduser.c -lnetapi32`\n- Create a 32-bit DLL file:\n`i686-w64-mingw32-gcc -shared -oadduser32.dll adduser.c -lnetapi32`\n- Create a 64-bit EXE file:\n`x86_64-w64-mingw32-gcc -oadduser64.exe adduser.c -lnetapi32`\n- Create a 64-bit DLL file:\n`x86_64-w64-mingw32-gcc -shared -oadduser64.dll adduser.c -lnetapi32`\n\n### Using Visual Studio (tested with VS2013)\n\n- Create an EXE file:\n`cl.exe adduser.c /link /DEFAULTLIB:ADVAPI32 /DEFAULTLIB:NETAPI32`\n- Create a DLL file:\n`cl.exe adduser.c /LD /link /DEFAULTLIB:ADVAPI32 /DEFAULTLIB:NETAPI32`","funding_links":[],"categories":["C","C (286)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewsoft%2Fadduser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewsoft%2Fadduser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewsoft%2Fadduser/lists"}