meterpreter contains several scripts that support persistence on a compromised system. We will examine two script options for placing a backdoor on a compromised system:
metsvc script is a network service wrapper for
meterpreter that allows it to either be used as a Windows service or run as a command-line application. It is typically used as a backdoor to maintain communications with a compromised system.
metsvc, first compromise the system and then migrate
meterpreter to the
explorer.exe process to obtain a more stable shell.
metsvc agent by invoking the
run command, as shown in the following screenshot. As you ...