Maintaining Access
Persistence is dangerous and usually unnecessary for junior-mid level pentesting (time limited engagements, not red teaming). It opens a port on a machine with no credentials--leaves it wide open for a future attack. You'll have to go back in and delete the service and remove it from the registry. It'll give you an RC file to go in and delete the files for you, but it's generally dangerous and unnecessary.
Persistence Scripts
If you want to get a meterpreter shell back:
Scheduled Tasks
Metsvc
Last updated