Skip to content

Instantly share code, notes, and snippets.

View meloos's full-sized avatar
☺️

Michał Lemke meloos

☺️
View GitHub Profile
@meloos
meloos / ogame_fingerprint_decryptor.js
Created March 15, 2023 09:31 — forked from ogame-ninja/ogame_fingerprint_decryptor.js
OGame fingerprint decryptor (blackbox)
// When you login on https://lobby.ogame.gameforge.com
// The POST to https://gameforge.com/api/v1/auth/thin/sessions now send a new attribute "blackbox"
// which is an encrypted javascript fingerprint.
// This script allows you to decrypt this "blackbox" and see what is being sent to ogame.
// `blackbox: "tra:JVqc1PkrbpPF9zilCnz...`
// The "tra:" prefix should be removed. The decrypt function takes "JVqc1PkrbpPF9zilCnz..."
function decrypt(arg1) {
let reverseRetardPseudoB64Encoding = function(arg1) {
let extraPadding = 0;