mirror of
https://github.com/fail0verflow/hbc.git
synced 2024-11-25 11:06:56 +01:00
18 lines
293 B
Python
Executable File
18 lines
293 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import sys, os, os.path
|
|
import pywii as wii
|
|
|
|
wii.loadkeys()
|
|
|
|
tikfile = sys.argv[1]
|
|
print("fixing Tik file %s " % tikfile)
|
|
tik = wii.WiiTik(open(tikfile, "rb").read())
|
|
tik.null_signature()
|
|
tik.brute_sha()
|
|
tik.update()
|
|
f = open(tikfile,"wb")
|
|
f.write(tik.data)
|
|
f.close()
|
|
|