利用 CSC 的(现已过时的)Windows 本地权限提升(LPE)漏洞的 Nim 版本。 仅供教育目的使用,请参阅补丁列表以确定您的系统/目标是否存在漏洞。 https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-26229
# Make sure you have the necessary nim libraries installed
# This will create a main.exe
nim c --app=console --cpu=amd64 --os=windows -d:release --gc:arc --passL:-s --cc:gcc --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc main.nim
该模板使用 powershell 执行 base64 编码的脚本块。将您的有效载荷托管在 Web 服务器上(或利用大多数 C2 平台提供的文件托管机制),对下载字符串进行 base64 编码,然后只需将 ###Your base64 delivery here### 替换为 base64 编码后的字符串。
待更新
待更新