项目作者: Cleafy

项目描述 :
A more refined fingerprinting module based on Fingerprint2.js
高级语言: JavaScript
项目地址: git://github.com/Cleafy/refingerprint.git
创建时间: 2016-02-25T09:37:34Z
项目社区:https://github.com/Cleafy/refingerprint

开源协议:Other

下载


Refingerprint

Builds on top of Fingerprint2 adding several additional features to further
narrow the browser down. Some of these new features were implemented on the content provided by Browserspy
and other various similar articles that I found on the Internet.

As a recognition to the original author of the library and in order to provide simple compatibility with users
of Fingerprint2js, we left the external library interface intact.

Installation

Bower

  1. bower install https://github.com/Cleafy/refingerprint.git

Usage

  1. new Refingerprint().get(function (result, components) {
  2. // An hash, representing your device fingerprint: notice that this is twice the size
  3. // of Fingerprint2 hash, the first 32 bytes being exactly the latter, and the last 32
  4. // bytes being an hash produced solely based on added features
  5. console.log(result);
  6. // An array of FP components
  7. console.log(components);
  8. });

You can pass an object with options (all of which are optional):

  1. var options = {
  2. swfPath: '/assets/FontList.swf',
  3. imagesPath: '/assets/images/test'
  4. excludeWindowDump: true
  5. };
  6. new Refingerprint(options).get(function (result) {
  7. console.log(result);
  8. });

Available options include all those exposed by Fingerprint2, plus the following: excludeLiteralColors,
excludeActivexObjects, excludeMsComponents, excludeNavigatorDump, excludeToolbarDump, excludeCryptoDump,
excludeWindowDump, excludeDocumentDump, excludeStyleDump, excludeErrorMessages, excludeImagesFormats.

Added features

  1. Literal colors: actual rgb value of css colors that can be represented by a literal identifier;
  2. ActiveX object: detect some common ActiveX objects available on MS browsers (few are replicas of those detected
    by Fingerprint2, others are new);
  3. MS components: attempts to detect some MS components through ClientCaps integration;
  4. Global objects: list of native functions implemented by globally accessible objects (window, document, navigator, crypto, toolbar);
  5. CSS dump: list of all supported css properties;
  6. Error messages: different browsers/versions exhibit slightly different error messages for the same errors;
  7. Supported image formats: this is the only asynchronous module and the heaviest one. It is advised to turn it off in most cases.

License: MIT