You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking through the code it shows that Trial licensing relies on the local computers date/time to validate expiration which is easily circumvented with programs like RunAsDate. Validation of date/time should always occur using a time server, although I question if even that is proper because one could write ones own UDP server and redirect Nist traffic to it.
Perhaps there is a better way to validate date/time for trials. Thoughts?
bool result;
if (LicenseType == LicenseType.Subscription)
result = ValidateSubscription();
else
result = DateTime.UtcNow < ExpirationDate; // bad
if (result) // this should be if (LicenseType != LicenseType.Subscription)
ValidateUsingNetworkTime();
else
throw new LicenseExpiredException("Expiration Date : " + ExpirationDate);
The text was updated successfully, but these errors were encountered:
On Thu, Sep 4, 2014 at 12:49 AM, Strandedpirate [email protected]
wrote:
Looking through the code it shows that Trial licensing relies the local
computers time to validate expiration which is easily circumvented with
programs like RunAsDate. Validation of date/time should always occur using
a time server, although I question if even that is proper because one could
write ones own UDP server and redirect Nist traffic to it.
Perhaps there is a better way to validate date/time for trials. Thoughts?
bool result;
if (LicenseType == LicenseType.Subscription)
result = ValidateSubscription();
else
result = DateTime.UtcNow < ExpirationDate; // bad
if (result) // this should be if (LicenseType != LicenseType.Subscription)
ValidateUsingNetworkTime();
else
throw new LicenseExpiredException("Expiration Date : " + ExpirationDate);
—
Reply to this email directly or view it on GitHub #10.
Looking through the code it shows that Trial licensing relies on the local computers date/time to validate expiration which is easily circumvented with programs like RunAsDate. Validation of date/time should always occur using a time server, although I question if even that is proper because one could write ones own UDP server and redirect Nist traffic to it.
Perhaps there is a better way to validate date/time for trials. Thoughts?
The text was updated successfully, but these errors were encountered: