Services
We can abuse services for persistence, for this example, we will create a new service called "UpdaterServ":
sc create UpdaterServ binpath= "c:\binary" start= autoWe can see If it worked with:
sc query UpdaterServWe can finally start the service with:
sc start UpdaterServNote: You will get an error if your persistence executable does not contain the necessary functions to function as a windows service. For more information on how to write a windows service:
You can also modify an existing service to point to your persistence executable like so:
sc stop UpdaterServ
sc config UpdaterServ binpath= "c:\binary"
sc start UpdaterServLast updated
Was this helpful?