LOLBAS/Archive-Old-Version/OSBinaries/SC.exe.md

500 B

SC.exe

  • Functions: Execute, Read ADS, Create Service, Start Service

sc create evilservice binPath="\"c:\\ADS\\file.txt:cmd.exe\" /c echo works > \"c:\ADS\works.txt\"" DisplayName= "evilservice" start= auto
sc start evilservice