Skip to content

Commit

Permalink
Update Remote.cpp
Browse files Browse the repository at this point in the history
Don't create an interactive PAExec service on the remote server
  • Loading branch information
dnebeker committed Dec 14, 2020
1 parent ac60aaa commit 8b99c1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Remote.cpp
Expand Up @@ -332,8 +332,10 @@ bool InstallAndStartRemoteService(LPCWSTR remoteServer, Settings& settings)
if (BAD_HANDLE(hService))
{
DWORD serviceType = SERVICE_WIN32_OWN_PROCESS;
if( ((DWORD)-1 != settings.sessionToInteractWith) || (settings.bInteractive) )
serviceType |= SERVICE_INTERACTIVE_PROCESS;

//as of Vista, services can no longer be interacted with
//if( ((DWORD)-1 != settings.sessionToInteractWith) || (settings.bInteractive) )
// serviceType |= SERVICE_INTERACTIVE_PROCESS;

CString svcExePath = StrFormat(L"%s\\%s.exe", settings.targetSharePath, remoteServiceName);
if(NULL == remoteServer)
Expand Down

0 comments on commit 8b99c1b

Please sign in to comment.