Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msdt.exe issues #68

Open
nemesis7331 opened this issue May 17, 2020 · 3 comments
Open

msdt.exe issues #68

nemesis7331 opened this issue May 17, 2020 · 3 comments

Comments

@nemesis7331
Copy link

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!

@bohops
Copy link
Contributor

bohops commented Jul 3, 2020

Hello,

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

@wietze
Copy link
Member

wietze commented Nov 17, 2021

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
Copy link
Member

wietze commented Apr 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants