In this recipe, we will learn about a few ways to get an administrator account on a Windows server. There are multiple ways to get administrator rights on a Windows system. Let's look at a few ways in which this can be done.
Privilege escalation on Windows
How to do it...
Let's perform the following steps:
- Once we have Meterpreter on the system, Metasploit has a built-in module that we can use. We can use three different methods to get administrator access.
- First, we will see the infamous getsystem of Metasploit to view the system help. Use the following command:
getsystem -h
The output of running the preceding command is shown in the following screenshot:
- To try and get the admin, type the following command...