Skip to content

Instantly share code, notes, and snippets.

View m4x10187's full-sized avatar
❤️
Let's All Love Lain

SylverReZ m4x10187

❤️
Let's All Love Lain
View GitHub Profile
@m4x10187
m4x10187 / gw_flash.py
Created August 10, 2025 09:52 — forked from SciresM/gw_flash.py
utility for interacting with gateway modchip updates
import sys
from struct import pack as pk, unpack as up
def u32(x):
return x & 0xFFFFFFFF
def tea_update_custom_mac(mac, v, k):
v0, v1 = v[0], v[1]
cur_sum = 0xC6EF3720
k0, k1, k2, k3 = k[0], k[1], k[2], k[3]