> For the complete documentation index, see [llms.txt](https://notes.nomanaziz.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.nomanaziz.me/cybersecurity/penetration-testing/elearnsecurity/ejpt/system-attacks/backdoor.md).

# Backdoor

### Persisting Netcat Backdoor via Windows Registry

Go to `HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Run` and Create a String Value with the exact command in quotes and absoulute path.

***

### Persistance via Metasploit

Use Exploit `s4u_persistence` on an active session in metasploiit.

***
