Skip to content
This repository was archived by the owner on Dec 11, 2018. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 755 Bytes

Sc.md

File metadata and controls

33 lines (21 loc) · 755 Bytes

UPDATE BOOKMARKS - PROJECT MOVED TO A DEDICATED PROJECT SITE. THIS SITE WILL NOT BE UPDATED ANYMORE, BUT WILL BE KEPT FOR HISTORICAL REASONS.

New site: https://github.com/LOLBAS-Project/LOLBAS Web portal: https://lolbas-project.github.io/

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     

Acknowledgements:

  • Oddvar Moe - @oddvarmoe

Code sample: *

Resources:

Full path:

c:\windows\system32\sc.exe
c:\windows\sysWOW64\sc.exe

Notes: