Skip to content

Instantly share code, notes, and snippets.

@icefire
Created July 1, 2009 05:26
Show Gist options
  • Save icefire/138607 to your computer and use it in GitHub Desktop.
Save icefire/138607 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import sys, os
sys.path.append('../Common')
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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment