Page 1 of 1

Enigma protection with terminal services

Posted: Thu Feb 21, 2013 3:24 pm
by burking
The question is if enigma can protect against a customer who connects to Windows Terminal Server with the same user. I mean, for example two terminal session open with the same user.

Thank in advance

Re: Enigma protection with terminal services

Posted: Thu Feb 21, 2013 3:43 pm
by Enigma
Hi burking,

Seems no. Enigma protects only a file from being modified, cracker and so, it does not control user sessions.

Re: Enigma protection with terminal services

Posted: Thu Feb 21, 2013 4:03 pm
by burking
..Then With one license and windows terminal server with 50 session you can use any software protected with enigma.
I think enigma is a good product but i need this feature to be perfect :-D. You can protect by hardware id and also by windows user name and also by number of executed process!! . why not add a number of terminal sessions per user? You can get it with this.

BOOL ProcessIdToSessionId(
_In_ DWORD dwProcessId,
_Out_ DWORD *pSessionId
);

Re: Enigma protection with terminal services

Posted: Thu Feb 21, 2013 4:18 pm
by Enigma
Yes, Enigma Protector does not have any limitations to the number of sessions the protected software is used.
Of course, something new can be done, why not.

But how ProcessIdToSessionId can help there? It does not show how many sessions are used the current process.

Btw, the most easy way to implement it, would be making a plugin for protection, that will do all limitations.

Re: Enigma protection with terminal services

Posted: Thu Feb 21, 2013 4:43 pm
by burking
With ProcessIdToSessionId you get your current session number. Then you have your process name and your session number, you store it (Memory, disk, reg, dll..). When user starts the program from other session you get the sessionid again compare with the stored session and if different then msgbox("There is another session using this software, please exit from that session and restart")

also you can use,

Private Declare Function WTSEnumerateSessions _
Lib "wtsapi32.dll" Alias "WTSEnumerateSessionsA" ( _
ByVal hServer As Long, ByVal Reserved As Long, _
ByVal Version As Long, ByRef ppSessionInfo As Long, _
ByRef pCount As Long _
) As Long

More info of this api at http://support.microsoft.com/kb/291789/en-us