Skip to content

A simple script for fingerprinting a user in Game Maker Studio.

License

Notifications You must be signed in to change notification settings

silbinarywolf/fingerprint-gml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This library is no longer maintained by myself, a newer fork is available here: https://github.com/AceKiron/fingerprint-gml

Fingerprint GML

A simple script for fingerprinting a user in Game Maker Studio. My use case is to fuzzily identify different devices / users coming from the same IP address when they connect to my server.

Inspired by: https://github.com/Valve/fingerprintjs2.

Marketplace Link: https://marketplace.yoyogames.com/assets/6613/fingerprint

How it works

The fingerprint is calculated by writing the following to a buffer and retrieving an MD5 hash.

  • Operating System
  • Browser
  • Display Width / Height
  • Are Shaders Supported?
  • Timezone
  • Gamepad Count (+ count of connected gamepads)

On Windows-only, the following environment variables are used:

  • Username
  • Computer Name
  • Number of Processors
  • CPU Architecture, identifier, level and revision

Quick start

  • Import the fingerprint_md5.gml script into your project.
  • Call "fingerprint_md5()" to get a fingerprint of the user.

Requirements

  • Game Maker Studio 2 (Untested in GMS1)

Contributing

If you have ideas on how to improve the fingerprinting, either with a better hash function or by utilizing more feature detection functions in Game Maker Studio, please post an issue or submit a pull request!

Ideally this script would have better fingerprinting by being able to utilize RAM information, GPU information and CPU information such as core count / GHZ / cache sizes. Unfortunately, I haven't found any such scripts / functions in the Game Maker Studio 2 documentation.

About

A simple script for fingerprinting a user in Game Maker Studio.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published