RunasCs icon indicating copy to clipboard operation
RunasCs copied to clipboard

IsLimitedUserLogon function improvements

Open antonioCoco opened this issue 1 year ago • 0 comments

The IsLimitedUserLogon function is a useful feature that suggests if other more powerful logon are available to the user. The current logic first check some token properties like TokenElevation and TokenElevationType and then checks mismatch in token IL.

This logic should be inverted and the check for the token IL mismatch should be called before than the below if:

https://github.com/antonioCoco/RunasCs/blob/a1e47b55952fadd46bf097be74a6efbcbe846c2b/RunasCs.cs#L434-L438

antonioCoco avatar Mar 31 '24 20:03 antonioCoco