Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import sys, os, os.path
sys.path.append(os.path.realpath(os.path.dirname(sys.argv[0]))+"/../Common")
import pywii as wii
wii.loadkeys(os.environ["HOME"]+os.sep+".wii")
wadfile = sys.argv[1]
indir = sys.argv[2]
<crediar> class HashError(RuntimeError):
<crediar> class WiiPKAlgo:
<crediar> class WiiRSA(WiiPKAlgo):
<crediar> class WiiECDSA(WiiPKAlgo):
<crediar> class WiiDisc:
<crediar> class WiiSigned:
<crediar> class WiiTik(WiiSigned):
<crediar> class WiiPartitionOffsets:
<crediar> class WiiTmdContentRecord:
<crediar> class WiiTmd(WiiSigned):
#!/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]))
ec.py
ec.pyc
ectest.py
wii.py
wii.pyc
__init__.py
__init__.pyc
-rw-r--r-- 1 thomas thomas 267 2008-04-02 18:08 arclist.py
-rw-r--r-- 1 thomas thomas 525 2008-04-02 18:08 arcpack.py
-rw-r--r-- 1 thomas thomas 482 2008-04-02 18:08 discinfo.py
-rw-r--r-- 1 thomas thomas 1417 2008-04-02 18:08 extract.py
-rw-r--r-- 1 thomas thomas 660 2008-04-02 18:08 getappldr.py
-rw-r--r-- 1 thomas thomas 659 2008-04-02 18:08 injectdol.py
-rw-r--r-- 1 thomas thomas 1517 2008-04-02 18:08 inject.py
-rw-r--r-- 1 thomas thomas 681 2008-04-02 18:08 partsetios.py
-rw-r--r-- 1 thomas thomas 388 2008-04-02 18:08 rsapatch.py
-rw-r--r-- 1 thomas thomas 201 2008-04-02 18:08 saveinfo.py
MacBook-Pro:SOAP galaxy$ perl wii-us.pl
[x] Sending request ...
HTTP/1.1 200 OK
Connection: close
Date: Tue, 09 Jun 2009 21:00:45 GMT
Server: Apache/2.2.11
Content-Length: 5089
Content-Type: text/xml;charset=utf-8
Client-Date: Tue, 09 Jun 2009 21:00:45 GMT
Client-Peer: 209.67.106.201:80
Theorized Logic Process for Wiimpersonator:
Check Request (regionalized) likely is the script run on an hourly basis.
Performed by: (check.py)
SOAP Request given region info from check.py.
Peformed by: (soap.py)
#!/usr/bin/perl -w
use strict;
use LWP::UserAgent;
use HTTP::Request;
# Message ID
my $msg_id = "13198105123219138";
# Device ID
my $dev_id = "4362227770";
1) ES_AddTicket()
2) ES_AddTitleStart(valid TMD, certs, etc)
3) ES_AddContentStart()
4) ES_AddContentData(unmodified data)
5) ES_AddContentFinish()
6) If there is more contents jump to (3)
7) Haxx contents in /import/
8) ES_AddTitleFinish()