基于Java的独特计算机ID硬件

发布于 2024-09-16 14:50:38 字数 193 浏览 2 评论 0原文

我需要从一台 PC 生成一个唯一的代码,我的软件将通过许可证分发,并且我需要在本地识别环境并将该代码发送到服务器。 我不想在服务器上保留一个序列号,并且每个客户端都会收到一个序列号,我尝试从 NetworkInterfaces 读取 MAC 地址,但不安全,用户可以轻松更改 MAC 地址。 我认为最好的方法是读取主板序列号,但到目前为止我还没有找到方法。 有什么建议吗?

I need to generate a unique code from a single PC, my software will be distribute by licence, and locally I need to identify the environment and send this code to the server.
I don't want to mantain on the server a sequencial number and each client recieve a number of the sequence, i tried to read the MAC adress from NetworkInterfaces, but is not secure, the user can change easily the MAC adress.
The best way I think if its possible to read the motherboard serial number, but I haven't found the way until now.
Any sugestion?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

仲春光 2024-09-23 14:50:38

你们的软件值多少钱?

目标市场盗版软件很多吗?

可以使用 WMI 在 Windows 机器上读取主板序列号 使用

WMI 读取序列号
http://www.c-sharpcorner .com/UploadFile/GemingLeader/mb-sn-wmi08242009101325AM/mb-sn-wmi.aspx

从 Java 使用 WMI
http://henryranch.net/software/jwmi-query-windows- wmi-from-java/

如果 AD 域中的 Windows XP 域成员使用组策略,则 WMI 会被破坏。

(这只会影响大多数 XP 企业用户,所以没什么大不了的)

希望这会有所帮助(MAC 地址更简单......但很容易更改)

How much is your software worth ?

Does the target market pirate software a lot ?

Motherboard serial number reading is possible on Windows boxes using WMI

Use WMI to read serial number
http://www.c-sharpcorner.com/UploadFile/GemingLeader/mb-sn-wmi08242009101325AM/mb-sn-wmi.aspx

Use WMI from Java
http://henryranch.net/software/jwmi-query-windows-wmi-from-java/

WMI is/was a broken on Windows XP domain members on a AD Domain, if they use group policies.

( This only effects most corporate users of XP, so not a big deal)

Hope this helps a bit ( MAC address is simpler... but is easy to change)

难忘№最初的完美 2024-09-23 14:50:38

MAC 地址不可靠。
您应该瞄准一些无法更改的内容,例如 CPU ID 或 HDD IDE ID。
我的意思是: http://www.soft.tahionic.com/download -hdd_id/index.html

不幸的是,我不认为 DLL 可以与 Java 一起使用,但至少它会向您显示一些关于什么是可靠的、什么是不可靠的信息。

The MAC address is not reliable.
You should aim for something that cannot be change such a CPU ID or HDD IDE ID.
Here is want I mean: http://www.soft.tahionic.com/download-hdd_id/index.html

Unfortunately I don't think that DLL is working with Java, but at least it will show you some info about what is reliable and what is not.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文