Skip to content

Instantly share code, notes, and snippets.

@Siss3l
Created May 19, 2024 19:47
Show Gist options
  • Save Siss3l/e946c0b750ca24177190735e04b10d16 to your computer and use it in GitHub Desktop.
Save Siss3l/e946c0b750ca24177190735e04b10d16 to your computer and use it in GitHub Desktop.
MAC Address Wii conversion
m = bytes.fromhex((_ := "01-23-45-67-89-99").replace("-", "").replace(" ", ""))
f = "".join([["L", "R", "U", "D"][(int.from_bytes(
__import__("hashlib").sha1(m+b"\x19\xa5\x7f\x15").digest()[:2] +
__import__("hashlib").sha1(m+b"\x03\x8f\xa5g\x00\x00").digest()[:2]) >> (30-2*i)) & 3]
for i in range(16)]); print(f) # https://mac.lc/company/nintendo-co-l-t-d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment