Skip to content
New issue

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

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

Already on GitHub? # to your account

Myrtille cannot open remoteapp, but xfreerdp can #305

Closed
Sayi opened this issue Jul 16, 2021 · 5 comments
Closed

Myrtille cannot open remoteapp, but xfreerdp can #305

Sayi opened this issue Jul 16, 2021 · 5 comments

Comments

@Sayi
Copy link

Sayi commented Jul 16, 2021

Myrtille version

2.9.2_X86_X64

Server version

Windows Server 2019(I also try Windows Server 2012 R2)

Issue Description

Hi,

Myrtille cannot open remoteAPP,will show desktop:

http://XXX.XXX.X.XXX/Myrtille?__EVENTTARGET=&__EVENTARGUMENT=&server=AAA.AAA.A.AAA&domain=&user=admin&password=mypassword&program=D:\eclipse\eclipse\eclipse.exe&connect=Connect%21   ❌

encode url is also not work:

http://XXX.XXX.X.XXX/Myrtille?__EVENTTARGET=&__EVENTARGUMENT=&server=AAA.AAA.A.AAA&domain=&user=admin&password=mypassword&program=d%3A%5Ceclipse%5Ceclipse%5Ceclipse.exe&connect=Connect%21   ❌

Xfreerdp can, will show eclipse:

xfreerdp /u:admin  /v:AAA.AAA.A.AAA  /app:"D:\eclipse\eclipse\eclipse.exe"

Xfreerdp use /shell cannot open, will show desktop:

xfreerdp /u:admin  /v:AAA.AAA.A.AAA  /shell:"D:\eclipse\eclipse\eclipse.exe"

I found some similar issues, the most similar is #137 ,But my server uses windows server2019.

Then I create remote APP with remoteAPP tool at rdp-server, xfreerdp can open remoteapp:

 xfreerdp /u:admin  /v:AAA.AAA.A.AAA /app:"||eclipse"   ✅

 xfreerdp /u:admin  /v:AAA.AAA.A.AAA /shell:"||eclipse"

Myrtille cannot:

http://XXX.XXX.X.XXX/Myrtille?__EVENTTARGET=&__EVENTARGUMENT=&server=AAA.AAA.A.AAA&domain=&user=admin&password=mypassword&program=||eclipse&connect=Connect%21   ❌

Regards,
Sayi

@cedrozor
Copy link
Owner

Hi Sayi, Myrtille doesn't use remoteapp but the alternate shell feature of RDP. This is because, historically, there were some issues with FreeRDP and remoteapp. Maybe this was fixed in the latest versions of FreeRDP; I have to update it with Myrtille anyway, so I will re-check this.

That said, did you allowed Eclipse among the allowed remote apps (https://www.beyondtrust.com/docs/privileged-identity/app-launcher-and-recording/installation/set-up-rds.htm)? or set the (local or domain) policy which allows to remote start any unlisted program (#203)?

Also have a look at these:

@Sayi
Copy link
Author

Sayi commented Jul 19, 2021

Hi,

I set the local policy which allows to remote start any unlisted program according to your method, but it still doesn't seem to work.

Thank you for your reply anyway.

@Sayi Sayi closed this as completed Jul 21, 2021
@Beej126
Copy link

Beej126 commented Mar 12, 2022

Myrtille doesn't use remoteapp but the alternate shell feature of RDP. This is because, historically, there were some issues with FreeRDP and remoteapp. Maybe this was fixed in the latest versions of FreeRDP; I have to update it with Myrtille anyway, so I will re-check this.

@cedrozor - this sounds like the same solve as my #339 question - any chance you've gotten to fiddle with this yet or suggest where i can hack around?

@cedrozor
Copy link
Owner

Hi, yes I have to find some time to integrate the latest FreeRDP code (and work again on Myrtille, more globally) and re-check if I can use remoteapp instead of alternate shell

@Beej126
Copy link

Beej126 commented Nov 22, 2022

@cedrozor - just a friendly bump if you happen to be bored over the holidays =) any tips you could give off the top of your head, even conceptually, where/how to switch from alternate-shell to remote-app are appreciated.

going by FreeRDP/wiki/CommandLineInterface i was hoping to see something about the /shell vs /app args being passed here in Myrtille.Services/RemoteSessionProcess but that piece doesn't seem to be included in this list of args - any help?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants