module
Sticky Keys Persistence Module
Disclosed | Created |
---|---|
01/01/1970 | 05/30/2018 |
Disclosed
01/01/1970
Created
05/30/2018
Description
This module makes it possible to apply the 'sticky keys' hack to a session with appropriate
rights. The hack provides a means to get a SYSTEM shell using UI-level interaction at an RDP
login screen or via a UAC confirmation dialog. The module modifies the Debug registry setting
for certain executables.
The module options allow for this hack to be applied to:
SETHC (sethc.exe is invoked when SHIFT is pressed 5 times),
UTILMAN (Utilman.exe is invoked by pressing WINDOWS+U),
OSK (osk.exe is invoked by pressing WINDOWS+U, then launching the on-screen keyboard), and
DISP (DisplaySwitch.exe is invoked by pressing WINDOWS+P).
The hack can be added using the ADD action, and removed with the REMOVE action.
Custom payloads and binaries can be run as part of this exploit, but must be manually uploaded
to the target prior to running the module. By default, a SYSTEM command prompt is installed
using the registry method if this module is run without modifying any parameters.
rights. The hack provides a means to get a SYSTEM shell using UI-level interaction at an RDP
login screen or via a UAC confirmation dialog. The module modifies the Debug registry setting
for certain executables.
The module options allow for this hack to be applied to:
SETHC (sethc.exe is invoked when SHIFT is pressed 5 times),
UTILMAN (Utilman.exe is invoked by pressing WINDOWS+U),
OSK (osk.exe is invoked by pressing WINDOWS+U, then launching the on-screen keyboard), and
DISP (DisplaySwitch.exe is invoked by pressing WINDOWS+P).
The hack can be added using the ADD action, and removed with the REMOVE action.
Custom payloads and binaries can be run as part of this exploit, but must be manually uploaded
to the target prior to running the module. By default, a SYSTEM command prompt is installed
using the registry method if this module is run without modifying any parameters.
Author
OJ Reeves
Platform
Windows
References
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 post/windows/manage/sticky_keys msf /(s) > show actions ...actions... msf /(s) > set ACTION < action-name > msf /(s) > show options ...show and set options... msf /(s) > run

NEW
Explore Exposure Command
Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.