
Инструмент локального повышения привилегий, эксплуатирующий небезопасные соединения WSUS в Windows через прокси-посредника (MITM), позволяющий выполнять команды с привилегиями SYSTEM.
Это программа доказательства концепции для повышения привилегий на хосте Windows путем злоупотребления WSUS. Подробности в этой записи блога: https://www.gosecure.net/blog/2020/09/08/wsus-attacks-part-2-cve-2020-1013-a-windows-10-local-privilege-escalation-1-day/ Он был вдохновлен проектом прокси WSuspect: https://github.com/ctxis/wsuspect-proxy
Модуль повышения привилегий написан Максимом Надо из GoSecure
Огромное спасибо:
Инструмент был протестирован на машинах с Windows 10 (10.0.17763 и 10.0.18363) в различных доменных средах.
Usage: WSuspicious [OPTION]...
Ex. WSuspicious.exe /command:"" - accepteula - s - d cmd / c """"echo 1 > C:\\wsuspicious.txt"""""" /autoinstall
Creates a local proxy to intercept WSUS requests and try to escalate privileges.
If launched without any arguments, the script will simply create the file C:\\wsuspicious.was.here
/exe The full path to the executable to run
Known payloads are bginfo and PsExec. (Default: .\PsExec64.exe)
/command The command to execute (Default: -accepteula -s -d cmd /c ""echo 1 > C:\\wsuspicious.was.here"")
/proxyport The port on which the proxy is started. (Default: 13337)
/downloadport The port on which the web server hosting the payload is started. (Sometimes useful for older Windows versions)
If not specified, the server will try to intercept the request to the legitimate server instead.
/debug Increase the verbosity of the tool
/autoinstall Start Windows updates automatically after the proxy is started.
/enabletls Enable HTTPS interception. WARNING. NOT OPSEC SAFE.
This will prompt the user to add the certificate to the trusted root.
/help Display this help and exit

Зависимость ILMerge может быть использована для компиляции приложения в автономный .exe файл. Чтобы скомпилировать и скомпилировать приложение, просто используйте следующую команду:
dotnet msbuild /t:Restore /t:Clean /t:Build /p:Configuration=Release /p:DebugSymbols=false /p:DebugType=None /t:ILMerge /p:TrimUnusedDependencies=true