macOS Apple Events

Support HackTricks

Basic Information

Apple Events는 애플의 macOS에서 애플리케이션 간의 통신을 가능하게 하는 기능입니다. 이는 macOS 운영 체제의 구성 요소인 Apple Event Manager의 일부로, 프로세스 간 통신을 처리하는 역할을 합니다. 이 시스템은 한 애플리케이션이 다른 애플리케이션에 메시지를 보내 특정 작업을 수행하도록 요청할 수 있게 합니다. 예를 들어 파일 열기, 데이터 검색 또는 명령 실행 등이 있습니다.

mina 데몬은 /System/Library/CoreServices/appleeventsd로, 서비스 com.apple.coreservices.appleevents를 등록합니다.

이벤트를 수신할 수 있는 모든 애플리케이션은 이 데몬과 확인하여 자신의 Apple Event Mach Port를 제공합니다. 그리고 애플리케이션이 이벤트를 보내고자 할 때, 해당 애플리케이션은 데몬으로부터 이 포트를 요청합니다.

샌드박스 애플리케이션은 이벤트를 보낼 수 있도록 allow appleevent-send(allow mach-lookup (global-name "com.apple.coreservices.appleevents))와 같은 권한이 필요합니다. com.apple.security.temporary-exception.apple-events와 같은 권한은 이벤트를 보낼 수 있는 접근을 제한할 수 있으며, 이는 com.apple.private.appleevents와 같은 권한이 필요합니다.

It's possible to use the env variable AEDebugSends in order to log informtion about the message sent:

AEDebugSends=1 osascript -e 'tell application "iTerm" to activate'
HackTricks 지원하기

Last updated