Gaining persistent access with Metasploit
Gaining persistent access to the target systems is important when you are a part of a law enforcement agency. However, in a conventional penetration test, persistence may not be very practical, unless the testable environment is huge and will take many days for the test to complete. But this doesn't mean that it is not worth knowing how to maintain access to the target. In the following section, we will cover persistence techniques, which one can use to maintain access to the target system. In addition, Metasploit has depreciated the persistence and metsvc
modules in meterpreter, which were used to maintain access to the target. Let's cover the new techniques for achieving persistence.
Gaining persistent access on Windows-based systems
In this example, we have already gained meterpreter access to a system running Windows Server 2012 R2. Let's move the meterpreter to the background using the background
command and use the latest persistence module,...