This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |