Skip to content

MUSTLaboratory/fingerprintjs2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fingerprintjs2

Original fingerprintjs library was developed in 2012, it's now impossible to evolve it without breaking backwards compatibilty, so this project will be where all the new development happens.

This project will use significantly more sources for fingerprinting, all of them will be configurable, that is it should be possible to cherry-pick only the options you need or just enable them all.

I'm also paying special attention to IE plugins, popular in China, such as QQ, Baidu and others.

This project will not be backwards compatible with original fingerprintjs.

The library is currently under development and only partially usable.

Usage

new Fingerprint2().get(function(result){
  console.log(result);
});

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

var options = {swfPath: '/assets/FontList.swf', excludeUserAgent: true};
new Fingerprint2(options).get(function(result){
  console.log(result);
});

Full list of options will be in the wiki. (wip)

To use flash font enumeration, make sure you have swfobject available. If you don't, the library will skip the flash part entirely.

View the fingerprint locally

You can view your browser fingerprint locally by starting a webserver and viewing the index.html page. Loading index.html from the filesystem won't work due to Flash's ExternalInterface security restrictions.

To start a web server you can use either Ruby:

ruby -run -e httpd . -p 8080

or Python

# will load on port 8000
python -m SimpleHTTPServer

List of fingerprinting sources

  1. UserAgent
  2. Language
  3. Color Depth
  4. Screen Resolution
  5. Timezone
  6. Has session storage or not
  7. Has local storage or not
  8. Has indexed DB
  9. Has IE specific 'AddBehavior'
  10. Has open DB
  11. CPU class
  12. Platform
  13. DoNotTrack or not
  14. Full list of installed fonts (maintaining their order, which increases the entropy), implemented with Flash.
  15. A list of installed fonts, detected with JS/CSS (side-channel technique) - can detect up to 100 installed fonts without flash
  16. Canvas fingerprinting
  17. WebGL fingerprinting
  18. Plugins (IE included)

Many more fingerprinting sources will be implemented, such as

  • Multi-monitor detection,
  • silverlight integration,
  • Flash linux kernel version,
  • Internal HashTable implementation detection
  • and many more.

To recompile the FontList.swf file:

License: MIT or Apache, whichever you prefer.

About

Modern & flexible browser fingerprinting library, a successor to the original fingerprintjs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.3%
  • ActionScript 1.9%
  • HTML 1.5%
  • Makefile 0.3%