Description
This module exploits an unauthenticated remote code execution vulnerability in Remote for Mac 2025.6. When the "Allow unknown devices" setting is enabled, it is possible to simulate keyboard input via UDP packets without authentication. By sending a sequence of key presses, an attacker can open the Terminal and execute arbitrary shell commands, achieving code execution as the current user.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/osx/misc/remote_for_mac_udp_rcemsf undefined(remote_for_mac_udp_rce) > show actions ...actions...msf undefined(remote_for_mac_udp_rce) > set ACTION < action-name >msf undefined(remote_for_mac_udp_rce) > show options ...show and set options...msf undefined(remote_for_mac_udp_rce) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub