Initial commit
This commit is contained in:
20
pywii/pywii-tools/rsapatch.py
Executable file
20
pywii/pywii-tools/rsapatch.py
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys, os, os.path
|
||||
import pywii as wii
|
||||
|
||||
def hexdump(s):
|
||||
return ' '.join(map(lambda x: "%02x"%x,map(ord,s)))
|
||||
|
||||
isofile = sys.argv[1]
|
||||
disc = WiiDisc(isofile)
|
||||
disc.showinfo()
|
||||
part = WiiPartition(disc,int(sys.argv[2]))
|
||||
part.showinfo()
|
||||
|
||||
part.tmd.update_signature(file("signthree.bin").read())
|
||||
part.tmd.brute_sha()
|
||||
part.updatetmd()
|
||||
|
||||
part.showinfo()
|
||||
|
||||
Reference in New Issue
Block a user