So as I said before.
My interpreter sessions reside in the memory of a process.
So when this process finishes, the interpreter session will die and you will lose your connection to
the compromise machine.
If you lose it, then you've got to exploit the target again.
So if you want to avoid this, you migrate to processes that can't easily be terminated by a user such
as Alsace.
However.
It's not always a permanent solution, especially if the user completely shuts down the computer.
Right.
So.
We've probably got to find a better way to come back again and not to repeat the exploitation, because
the system might be patched already, but hopefully not.
But you've really got to be careful because what you're going to do next.
Should be clearly specified in the scope of the engagement.
All right, so let's move on, rather than really exploiting the same vulnerability or move between
the processes, it would be ideal to have a persistent connection with the target.
So to accomplish this idea, you can create back doors and users use root kits.
And there's a bunch of other things.
But thankfully, MSF interpreter will let you be persistent on the target system.
And that is what is going to keep your access for future exploitations and then you can spread throughout
the network.
Now, one thing you should keep in mind is don't forget your back door when the penetration test finishes.