from Crypto.Cipher import AES import binascii def decrypt_frosty_config(enc_file, key_hex): key = binascii.unhexlify(key_hex) with open(enc_file, 'rb') as f: iv = f.read(16) ciphertext = f.read()
[16 bytes IV][ciphertext] Key derived from the hex string above: frosty mod encryption key
"mod_version": "2.1.0", "author": "FrostyTeam", "flag": "CTFfrosty_mod_3ncrypt10n_k3y_md5_1s_n0t_s3cur3" from Crypto
So the hardcoded key = . 5. Decrypting the Config The file frosty_config.bin is provided. frosty mod encryption key
Output:
char* get_encryption_key() char *env_key = getenv("FROSTY_KEY"); if (env_key != NULL && strlen(env_key) == 32) return env_key; // Hardcoded fallback key (hex string) return "5f4dcc3b5aa765d61d8327deb882cf99";