Windows Capture Keystroke Recorder
This module can be used to capture keystrokes. To capture keystrokes when the session is running as SYSTEM, the MIGRATE option must be enabled and the CAPTURE_TYPE option should be set to one of Explorer, Winlogon, or a specific PID. To capture the keystrokes of the interactive user, the Explorer option should be used with MIGRATE enabled. Keep in mind that this will demote this session to the user's privileges, so it makes sense to create a separate session for this task. The Winlogon option will capture the username and password entered into the logon and unlock dialog. The LOCKSCREEN option can be combined with the Winlogon CAPTURE_TYPE to for the user to enter their clear-text password. It is recommended to run this module as a job, otherwise it will tie up your framework user interface.
- Carlos Perez <carlos_perez [at] darkoperator.com>
- Josh Hale <jhale85446 [at] gmail.com>
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/capture/keylog_recorder msf post(keylog_recorder) > sessions ...sessions... msf post(keylog_recorder) > set SESSION <session-id> msf post(keylog_recorder) > show options ...show and set options... msf post(keylog_recorder) > run