Skip to content

Instantly share code, notes, and snippets.

View R00tFS's full-sized avatar

RootFS R00tFS

  • France
  • 06:26 (UTC +02:00)
View GitHub Profile
@R00tFS
R00tFS / key_parser.py
Last active June 25, 2024 07:17
Tool to parse keys for AEA in IPSWs
from pyhpke import CipherSuite, KEMId, KEMKey, KDFId, AEADId
import base64
import requests
import argparse
import re
import fsspec
from zipfile import ZipFile
import json
from tabulate import tabulate
import io
@R00tFS
R00tFS / gof2_inventory_hash.py
Created January 9, 2024 08:46
Script to calculate hash of a GOF2 save file hash
import hashlib
# read file data as bytes
file = open("gof2_save_game_", "rb+")
data = file.read()
def calculate_hash(data) -> bytes:
# secret key to calculate the hash
key = b"#+\xc2\xa7R0LL3r(0aSter&_%=$+#\x00"
@R00tFS
R00tFS / ForceDarkMode.js
Last active November 20, 2022 00:23
ForceDarkMode beta
function m(o){window.enmity.plugins.registerPlugin(o)}var i="ForceDarkMode",s="1.0.0",c="Force Dark Mode when enmity restarts.",d=[{name:"bibi_fire",id:"448800441690619915"},{name:"Yan.",id:"735538297815957584"}],r={name:i,version:s,description:c,authors:d};window.enmity.modules.common.Constants,window.enmity.modules.common.Clipboard,window.enmity.modules.common.Assets,window.enmity.modules.common.Messages,window.enmity.modules.common.Clyde,window.enmity.modules.common.Avatars,window.enmity.modules.common.Native,window.enmity.modules.common.React,window.enmity.modules.common.Dispatcher,window.enmity.modules.common.Storage;const e=window.enmity.modules.common.Toasts;window.enmity.modules.common.Dialog;const n=window.enmity.modules.common.Token;window.enmity.modules.common.REST,window.enmity.modules.common.Settings,window.enmity.modules.common.Users,window.enmity.modules.common.Navigation,window.enmity.modules.common.NavigationNative,window.enmity.modules.common.NavigationStack,window.enmity.modules.common.Them