# Maintaining Access

## Persistence Scripts - Metasploit

* run persistence -h
* exploit/windows/local/persistent
* exploit/windows/local/registrery\_persistence

## Scheduled Tasks - Metasploit

* run scheduleme
* run schtaskabuse

## Add a user

* `net user username password /add`

***Note: In a real pentest the best option is just to Add a user, other options are not really useful as pentesters***

## Resource

{% embed url="<https://academy.tcm-sec.com/p/practical-ethical-hacking-the-complete-course>" %}
TCM Security Academy - Practical Ethical Hacking - The Complete Course
{% endembed %}
