mirror of
https://github.com/LOLBAS-Project/LOLBAS
synced 2024-12-30 16:54:00 +01:00
500 B
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
-
Resources:
-
Full path:
- C:\Windows\System32\sc.exe
- C:\Windows\SysWOW64\sc.exe
-
Notes: Thanks to Oddvar Moe - @oddvarmoe