mirror of
https://github.com/fail0verflow/hbc.git
synced 2024-11-17 15:19:22 +01:00
19 lines
311 B
Python
19 lines
311 B
Python
|
#!/usr/bin/env python
|
||
|
|
||
|
import sys, os, os.path
|
||
|
import pywii as wii
|
||
|
|
||
|
wii.loadkeys()
|
||
|
|
||
|
tmdfile = sys.argv[1]
|
||
|
print "TMD file %s:"%tmdfile
|
||
|
tmd = wii.WiiTmd(open(tmdfile, "rb").read())
|
||
|
tmd.null_signature()
|
||
|
tmd.brute_sha()
|
||
|
tmd.update()
|
||
|
tmd.parse()
|
||
|
tmd.showinfo(" ")
|
||
|
f = open(tmdfile,"wb")
|
||
|
f.write(tmd.data)
|
||
|
f.close()
|