The getdesktop and keystroke sniffing

In this recipe, we will deal with some of the stdapi user interface commands associated with desktops and keystroke sniffing. Capturing the keystrokes depends on the current active desktop, so it is essential to understand how we can sniff different keystrokes by switching between processes running in different desktop active sessions. Let us move ahead with the recipe to understand this deeply.

How to do it...

Let us start with executing some of the user interface commands which we will primarily deal with in this recipe. They are as follows:

  • enumdesktops: This command will list all the accessible desktops and window stations.
    meterpreter > enumdesktops
    
    Enumerating all accessible desktops
    
    Desktops
    ========

Get Metasploit Penetration Testing Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.