Description
Executes an arbitrary command on a Windows on ARM (AArch64) target. This payload is a foundational example of position-independent shellcode for the AArch64 architecture. It dynamically resolves the address of the `WinExec` function from `kernel32.dll` by parsing the Process Environment Block (PEB) and the module's Export Address Table (EAT) at runtime. This technique avoids static imports and hardcoded function addresses, increasing resilience.
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 payload/windows/aarch64/execmsf undefined(exec) > show actions ...actions...msf undefined(exec) > set ACTION < action-name >msf undefined(exec) > show options ...show and set options...msf undefined(exec) > 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