检测Windows上的时钟操作 [英] Detect Clock manipulation on Windows

查看:95
本文介绍了检测Windows上的时钟操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



我不确定是否有办法在独立的Windows机器中检测时钟操作,我们可以通过它来跟踪申请有效期,例如应用程序应该从激活之日起仅运行30天。如果没有连接到互联网,有没有办法做到这一点?



感谢您的想法和建议, :)

Hello Everyone,

I''m not sure if there is any way to detect clock manipulation in a standalone windows machine by which we can keep track of the application validity, e.g. the application should run only for 30days from from the date of activation.Is there any way to do it without connecting to internet?

Thanks for yr ideas and suggestions,, :)

推荐答案

可靠吗?不,没有什么不容易被规避的。即使您编写文件或注册表项来保存上次使用的日期和时间,也可以设置一个简单的VM来绕过该文件而无需任何工作来查找文件或密钥。此外,很多国家每年自动更改两次,而PC也会这样做。所以你必须发现这是一个合法的变化或者疏远合法用户的风险。



我之前说过,我会说的再次:大多数时候,在这方面投入大量时间在经济上是不值得的 - 你需要将每个潜在的海盗转变为客户,而你保护它的时间要低于他们的总收入。或者你通过保护你的软件来赔钱......并且不会使合法用户感到不安,或者你也失去了那些销售,这可能会变得非常昂贵!
Reliably? No, nothing that can''t be circumvented pretty easily. Even if you write a file, or a registry entry to hold the date and time it was last used, a simple VM could be set up to get round that without any work to find the file or key. Plus, a lot of countries automatically change the time twice a year, and the PC follows that. So you have to detect that that was a "legal" change or risk alienating legitimate users.

I''ve said it before, and I''ll say it again: most of the time it is not financially worth while to invest much time in this - you need to convert every would-be-pirate into a customer and your time to protect it was cost less than the total income from them. Or you lose money by protecting your software... And don''t make it upset legitimate users, or you lose those sales as well, and that can get very expensive!




最简单的方法是在系统的任何文件中的某处写入,并在应用程序启动时计算日期时间。这是这种基本方法。您可以在其上添加多个支票。



RKS
Hi,
Simplest way is write somewhere in any file on system and on start of application calculate the date time. this is this basic approach. You can add multiple checks on it.

RKS


不可能为您的问题附上完整代码,因此,我建议您保存系统日期和时间(在注册表,配置文件,数据库或任何其他文件中)退出应用程序时。



所以现在,打开应用程序时您只需使用简单IF条件检查当前系统时间和上次运行时间...
It''s Not Possible to Enclose Full Code for Your Issue, So I Suggest You to Save System Date and Time (in Registry, Config File, Database or in Any Other Files) When exiting Application.

So Now, When Opening Application You Just Check Current System Time with Last Run Time Using Simple IF Condition...


这篇关于检测Windows上的时钟操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆