blackbox

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERVER_FILE_GAME1_FILE = "https://gameforge.com/tra/game1.js"
	VECTOR_CONTENT_LENGTH  = 100
	UUID_LENGTH            = 27
)

Variables

This section is empty.

Functions

func CreateVector

func CreateVector(content string, time int64) string

func GenerateUuid

func GenerateUuid() string

func GenerateVector

func GenerateVector() string

func GetServerDate

func GetServerDate() (string, error)

func UnpackVector

func UnpackVector(vector string) (string, string)

func UpdateVector

func UpdateVector(vector *string)

Types

type Blackbox

type Blackbox string

func New

func New(fingerprint *Fingerprint) (Blackbox, error)

func (Blackbox) Encrypt

func (b Blackbox) Encrypt(gsId, accountId string) []byte

func (Blackbox) String

func (b Blackbox) String() string

type Fingerprint

type Fingerprint struct {
	V              float64  `json:"v"`
	Tz             string   `json:"tz"`
	Dnt            bool     `json:"dnt"`
	Product        string   `json:"product"`
	OsType         string   `json:"osType"`
	App            string   `json:"app"`
	Vendor         string   `json:"vendor"`
	Mem            float64  `json:"mem"`
	Con            float64  `json:"con"`
	Lang           string   `json:"lang"`
	Plugins        string   `json:"plugins"`
	Gpu            string   `json:"gpu"`
	Fonts          string   `json:"fonts"`
	AudioC         string   `json:"audioC"`
	Width          float64  `json:"width"`
	Height         float64  `json:"height"`
	Depth          float64  `json:"depth"`
	Video          string   `json:"video"`
	Audio          string   `json:"audio"`
	Media          string   `json:"media"`
	Permissions    string   `json:"permissions"`
	AudioFP        float64  `json:"audioFP"`
	WebglFP        string   `json:"webglFP"`
	CanvasFP       float64  `json:"canvasFP"`
	Creation       string   `json:"creation"`
	Uuid           string   `json:"uuid"`
	D              float64  `json:"d"`
	OsVersion      string   `json:"osVersion"`
	Vector         string   `json:"vector"`
	UserAgent      string   `json:"userAgent"`
	ServerTimeInMS string   `json:"serverTimeInMS"`
	Request        *Request `json:"request"`
}

type Request

type Request struct {
	Features     []float64 `json:"features"`
	Installation string    `json:"installation"`
	Session      string    `json:"session"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL