Description
This module exploits a flaw in the AfdJoinLeaf function of the afd.sys driver to overwrite data in kernel space. An address within the HalDispatchTable is overwritten and when triggered with a call to NtQueryIntervalProfile will execute shellcode.
This module will elevate itself to SYSTEM, then inject the payload into another SYSTEM process before restoring its own token to avoid causing system instability.
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/windows/local/ms11_080_afdjoinleafmsf undefined(ms11_080_afdjoinleaf) > show actions ...actions...msf undefined(ms11_080_afdjoinleaf) > set ACTION < action-name >msf undefined(ms11_080_afdjoinleaf) > show options ...show and set options...msf undefined(ms11_080_afdjoinleaf) > 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