Privilege escalation and process migration
In this recipe, we will focus on two very useful commands of meterpreter. The first one is for privilege escalation. This command is used to escalate the rights/authority on the target system. We might break in as a user who has less privilege to perform tasks on the system. So, we can escalate our privilege to the system admin in order to perform our tasks without interruption. The second command is for process migration. This command is used to migrate from one process to another process without writing anything on the disk.
How to do it...
In order to escalate our privilege, meterpreter provides us with the getsystem
command. This command automatically starts looking out for various possible techniques by which the user rights can be escalated to a higher level. Let us analyze different techniques used by the getsystem
command:
meterpreter > getsystem –h Usage: getsystem [options] Attempt to elevate your privilege to that of local system...