创建一个Chrome插件来获取计算机信息 [英] Create a Chrome plugin to get Computer Information

查看:863
本文介绍了创建一个Chrome插件来获取计算机信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在撰写一个非常具体的网络应用程序,该应用程序将部署在零售环境中的许多台式机上,并试图找出一种实现终端式许可证结构的方法。客户端将购买X终端许可证,并且由于应用程序通过Chrome浏览器运行,因此我正在寻找一种方法来生成机器本地信息的散列。

我已经看过几个选项:

1。)Evercookie。我对此并不生气,它在生成和加载时增加了相当的延迟,并且不是很优雅。设备指纹(按照 pdfrel =nofollow> https://panopticlick.eff.org/browser-uniqueness.pdf ),但由于我们将在AD控制的环境中处理很多终端,因此他们都会表现为它们具有相同的配置/版本并位于单个NAT设备之后。



我的下一个选择是创建一个需要安装以运行我们的应用程序的插件它会查看本地计算机,并获取一些关键信息字段(如主机名,Mac地址),这些信息字段应该比浏览器版本和屏幕大小更稳定,并允许通过插件/扩展程序中的JavaScript获取。

所以我的问题是谁能确认这是否可能?如果是这样,那么如何解决如何做到这一点的正确方法是什么?我简要了解了FireBreath( http://www.firebreath.org/display/文档/ FireBreath + Home ),但不知道什么是正确的路线。



任何建议将不胜感激。



Ian

解决方案

您可以在Chrome扩展中使用私有FireBreath插件来执行此操作;请确保它是私人的,所以其他网站等不能用它来唯一标识计算机。

首先,要做到这一点,你只需使用标准系统用于访问您需要的任何信息的API; FireBreath插件仅仅是C ++,在Chrome中没有什么特别的你需要担心,你将拥有与Chrome本身一样的访问权。



我也强烈建议您只通过插件API公开自己的散列,以尽量减少隐私问题;您公开的关于计算机的信息越多,某人找到某种方式滥用它的机会就越高。如果它是一个扩展内部的私有插件,那么它不那么危险,但仍值得小心。


I am writing a very specific web-app that will be deployed on many desktops within a retail environment and I am trying to figure out a way to implement a terminal-like license structure. Clients will purchase X terminal licenses and since the applications runs through Chrome I am looking for a way to generate a hash of the information local to the machine.

I have had a look at a few options already:

1.) Evercookie. I'm not mad about it, it adds quite a delay when generating and loading and just isnt really elegant. We have this working at the moment.

2.) Device fingerprinting (as per https://panopticlick.eff.org/browser-uniqueness.pdf), but since we will be dealing with many terminals in an AD controlled environment they would all represent as one since they have the same configurations/version and be behind a single NAT device.

My next option is to look at creating a plugin that is required to be installed to run our application and it looks at the local machine and gets me a few key information fields (like Hostname, Mac Address) which should remain more constant than browser version and screen size and allow that to be fetched via JavaScript within the plugin/extension.

So my question is can anyone confirm if this is possible? If so, what is the right way to go about figuring out how to do this? I have had a brief look at FireBreath (http://www.firebreath.org/display/documentation/FireBreath+Home), but not sure what the right route is here.

Any advice will be greatly appreciated.

Ian

解决方案

You could do this using a private FireBreath plugin inside a chrome extension; be sure that it's private, so other sites, etc can't use it to uniquely identify computers.

First of all, to do this you'd just use standard system APIs for accessing whatever information you need; FireBreath plugins are just C++, and in Chrome there isn't anything special you should need to worry about, you'll have the same access as Chrome itself does.

I also strongly recommend that you only expose the hash itself through the plugin API to minimize privacy concerns; the more information you expose about the computer the higher the chance that someone will find some way to abuse it. If it's a private plugin inside an extension it is less dangerous, but still worth being careful.

这篇关于创建一个Chrome插件来获取计算机信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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