如何限制应用程序只能从已知的USB闪存驱动器上运行? [英] How restrict an application to run only from a known USB flash drive?

查看:196
本文介绍了如何限制应用程序只能从已知的USB闪存驱动器上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个应用程序只能从特定的USB闪存驱动器上运行。我做了一些测试与WMI的 Win32_Diskdrive 类和 PNPdeviceID 属性。它是报名参加这个数据的应用程序到许可证服务器(Web服务)一个很好的想法,但我在寻找第二个方法来增援,以使这一进程更难破解这一个。

I need an application to run only from a specific USB flash drive. I made some test with the WMI Win32_Diskdrive class and the PNPdeviceID property. It is a very good idea to enroll the application into a license server (web services) with this data, but I'm searching for a second method to reenforce this one in order to make the process harder to break.

我想创建驱动器中的第二个小隐藏分区,并在其中找到一个名字由PNPdeviceID或其他信息obteined序列。 。任何其他的想法,方法或建议被接受

I was thinking to create a second little hidden partition in the drive and locate in it as a name the serial obteined by the PNPdeviceID or other information. Any other idea, method or suggestion is accepted.

在此先感谢

编辑:我已经知道从USB闪存驱动器和应用程序的唯一ID可以检查 Interfacetype 属性为USB。 I'm招收的PNPDeviceID的在Web服务支载许可证管理的哈希应用程序。我在寻找一个额外的第二个验证方法。

I already know a unique ID from the USB flash drive and the application can check if the Interfacetype property is "USB". I´m enrolling the application with a hash of the PNPDeviceID in a web-services suported licence manager. I'm searching for an additional second validation method.

推荐答案

您可以检查卷序列号,这将赶上随意复制到新格式化的卷,但不会全面检测字节确切数量的副本。结果
http://stackoverflow.com/questions/319508/to-protect-software-by-accessing-harddisk-serial-no 结果
http://stackoverflow.com/questions/1142579/any-faster-method-to -get-volumne-序列号

You can check the volume serial number, which will catch casual copying to a newly formatted volume, but it won't detect full byte-exact volume copies.
http://stackoverflow.com/questions/319508/to-protect-software-by-accessing-harddisk-serial-no
http://stackoverflow.com/questions/1142579/any-faster-method-to-get-volumne-serial-number

这篇关于如何限制应用程序只能从已知的USB闪存驱动器上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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