如何获取电脑的ID? [英] How to get ID of computer?

查看:43
本文介绍了如何获取电脑的ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

vb.net 或 java 中是否有任何代码可以获取计算机的 ID >>??我想编写一个可以获取计算机 id 的程序,以便像微软那样制作软件许可证?

Is there any code in vb.net or java to get ID of computer >>?? I want to write a program which could get id of computer in order to make a license of software like microsoft did ?

提前致谢

马卡拉

推荐答案

首先,Microsoft 许可不能以这种方式工作.

First off, microsoft licensing doesn't work this way.

他们有一个在他们这边生成的密钥.当他们向您出售该软件的副本时,他们会给您一个密钥.输入密钥后,软件会将一些加密的 tcp 数据包发送回 MS,以识别密钥现在正在使用中并增加使用次数.然后它会在您的系统上创建一个很好的隐藏文件,其中包含该密钥的授权.

They have a key which is generated on their side of things. When they sell you a copy of the software, they give you a key. Once you enter the key, the software sends some encrypted tcp packets back to MS in order to identify that the key is now in use and increase the usage count. It then creates a nicely hidden file on your system which contains the authorization for that key.

这些都不涉及获取计算机 ID".

None of this involves getting the "id of computer".

现在,MS(至少在他们的一种许可模式下)确实对系统进行了快照,其中包括处理器类型、硬盘驱动器和主板品牌/型号,以确定组件是否发生了足够的变化以触发潜在的风险检查计算机许可证是否需要重新验证.

Now, MS (under at least one of their licensing models) does take a snapshot of the system which includes the processor type, hard drive, and motherboard make/model in order to identify whether components have changed enough to trigger a potential check on whether the computer license needs to be reverified.

这让我们回到了计算机系统中没有单一ID"的想法.最后一次尝试是由英特尔使用(我相信?)他们的 PII 处理器.然而,公众的强烈反对足以让他们停止在芯片上放置序列号.

Which leaves us back to the idea that there isn't a single "ID" in a computer system. The last time it was attempted was by Intel with (I believe?) their PII processors. However, the public backlash was enough that they stopped putting serial numbers on the chip.

您可以做的下一件最接近的事情是尝试读取 MAC 地址;但是网卡经常变化,所以它充满了陷阱.

The next closest thing you can do is try and read a MAC address; but network cards change often enough that this is littered with pitfalls.

如果这确实是您想要的,我强烈建议您研究使用许可密钥的其他机制.

I would highly recommend you research other mechanisms for doing licensing keys if that's really what you want.

这篇关于如何获取电脑的ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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