LOLBAS icon indicating copy to clipboard operation
LOLBAS copied to clipboard

msdt.exe issues

Open nemesis7331 opened this issue 4 years ago • 3 comments

Hi,

I'm trying to reproduce msdt.exe execution but I'm unable to :\

First issue was with the xml file, on my pc only the UTF-8 is accepted, the utf-16 doesn't, working version below:

<?xml version="1.0" encoding="UTF-8"?>
<Answers Version="1.0">
	<Interaction ID="IT_LaunchMethod">
		<Value>ContextMenu</Value>
	</Interaction>
	<Interaction ID="IT_SelectProgram">
		<Value>NotListed</Value>
	</Interaction>
	<Interaction ID="IT_BrowseForFile">
		<Value>C:\poc.exe</Value>
	</Interaction>
</Answers>

Even after changing the xml the executable is not run automatically but requires additional user interaction, is it the correct behavior?

I'm running windows 10.0.18363 Build 18363

Thanks and keep rocking!

nemesis7331 avatar May 17 '20 23:05 nemesis7331

Hello,

Have you tried crafting a MSI package payload (e.g. <Value>C:\path\to\poc.msi</Value>). If so, does that work?

bohops avatar Jul 03 '20 19:07 bohops

With a .exe file, i got this: 3105225dce4270864157578856cea9ed

I could not get the .exe to execute.

With a .msi file, i got this: b4ad8f05a74c2c100d65e831a012f089

I was able to get the .msi to run by clicking Test the program button.

This seems to match the behaviour as described by @pabraeken: https://twitter.com/pabraeken/status/991335019833708544 (different command but targeting the same back end)

To answer your main question, yes, this seems to be a GUI-based LOLBAS, meaning you cannot let msdt.exe execute arbitrary .msi files without user interaction.

wietze avatar Nov 17 '21 16:11 wietze

FWIW, msdt has been tagged as a GUI-based LOLBAS now.

wietze avatar Apr 03 '24 16:04 wietze