Persistence is a major need in every successful hacking attack. Metasploit Framework comes with two major Persistence scripts:
-
S4U Persistence (Scheduled Persistence): to use it type use exploit/windows/local/s4u_persistence
![](https://static.packt-cdn.com/products/9781788624480/graphics/assets/23c42fba-3e28-4f8d-b49a-9786bad61a83.png)
- Volume Shadow Copy Service Persistence (VSS Persistence): to use it, type use exploit/windows/local/vss_persistence
![](https://static.packt-cdn.com/products/9781788624480/graphics/assets/152f60e2-816f-4350-9f14-83a78855cf6e.png)
Here are some additional options for Persistence:
- The Metasploit Service, (or Metsvc)
- VNCInject
You can use Windows binaries. To locate these binaries, go to /usr/share/windows-binaries path:
![](https://static.packt-cdn.com/products/9781788624480/graphics/assets/ef2f4cda-2093-4ad8-8520-5323811e8c46.png)