How to do it...

Before we proceed further with the recipe, there is an important concept about the Windows desktop that we will look at.

The Windows desktop is divided into different sessions in order to define the ways we can interact with the Windows machine. Session 0 represents the console. The other sessions, Session 1, Session 2, and so on, represent remote desktop sessions.

Every Windows session can be comprised of different stations, out of which WinSta0 is the only interactive station, meaning that it is the only station that the user can interact with. WinSta0 consists of three different desktops, namely, Default, Disconnect, and Winlogon. A desktop is a logical display surface containing user interface objects, such as windows, ...

Get Metasploit Penetration Testing Cookbook - Third Edition 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.