> For the complete documentation index, see [llms.txt](https://the-pentesting-guide.marmeus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://the-pentesting-guide.marmeus.com/persistance.md).

# Persistance

During a pentesting, you might want to have persistence on a machine for accessing the system, avoiding executing the original exploit used to gain access several times or to maintain a new session with higher privileges than you had at the beginning.

In this section, there are several techniques to keep persistence on a machine:
