Hacking error -2011 on virgin 4.0

kimikal27

Well-Known Member
OP
Member
Joined
Oct 28, 2008
Messages
1,380
Trophies
0
Age
43
Location
Galway
Website
Visit site
XP
97
Country
i just installed HBC whit bootmii and the HackMii installer on a virgin 4.0 wii, the wii is not a LU...

now when ever i try to install a cios i get the -2011 error, can any one help?
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
If you want to be one of my guinea pigs, you can try my Trucha Bug Restorer:
http://gbatemp.net/index.php?download=6340

You need IOS15v257, IOS15v266 and IOS36v3094 wads on root of sd card for it. With these names: IOS15-64-v257.wad, IOS15-64-v266.wad and IOS36-64-v3094.wad.

Step 1: Downgrade IOS15
Step 2: Install IOS36 with trucha bug to IOS249
Step 3: Restore IOS15
Step 4: Use IOS249 in the cIOS installer
 

fogbank

Well-Known Member
Member
Joined
Oct 28, 2008
Messages
413
Trophies
0
XP
56
Country
United States
WiiPower said:
Step 1: Downgrade IOS15

Am I getting this right?

1. Get the TMD and certs from the higher revision IOS (WAD file on SD).
2. Start the process of adding the title with ES_AddTitleStart() and supply the TMD and certs from step 1.
3. Use ISFS to delete the title.tmd from the /tmp folder.
4. Use ISFS to create a new title.tmd file in the /tmp folder.
5. Open the new file in RW mode.
6. Copy the TMD from step 1 into a new buffer.
7. Change the revision number to 0 (0x1DC and 0x1DD) in the buffer.
8. Write the buffer to the title.tmd file in the /tmp folder.
9. Finish adding the title with ES_AddTitleFinish.

You have now changed the revision of the installed IOS to 0.
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
fogbank said:
WiiPower said:
Step 1: Downgrade IOS15

Am I getting this right?

1. Get the TMD and certs from the higher revision IOS (WAD file on SD).
2. Start the process of adding the title with ES_AddTitleStart() and supply the TMD and certs from step 1.
3. Use ISFS to delete the title.tmd from the /tmp folder.
4. Use ISFS to create a new title.tmd file in the /tmp folder.
5. Open the new file in RW mode.
6. Copy the TMD from step 1 into a new buffer.
7. Change the revision number to 0 (0x1DC and 0x1DD) in the buffer.
8. Write the buffer to the title.tmd file in the /tmp folder.
9. Finish adding the title with ES_AddTitleFinish.

You have now changed the revision of the installed IOS to 0.

There are 2-3 exploits, yes:
- at 3. you don't have the permisson to read or write the file, but you can delete it without problems...
- at 9. there's no additional hash check. The manipulated IOS is UNSIGNED(for all those that don't understand, that's worse than trucha signed)
- the IOS is UNSIGNED, but you can still launch it...

It was pretty fun to reverse comex' IOS35 downgrader by its behaviour.

PS: IMPORTANT: Such downgraded IOS may still contain modules of the higher revision and the tmd has the wrong owner id, so it's not recommend to use such an IOS longer than necessary. Hmm, you could count it as 1-2 additional bugs in nintendo's design that the wrong owner id is not problem.
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
fogbank said:
WiiPower said:
It was pretty fun to reverse comex' IOS35 downgrader by its behaviour.

Very cool and nice work!

Ok i have to admit that comex did really nothing hide what his downgrader does except not releasing the source. If he would have only donwgraded if the IOS was already downloaded and/or changed the addtitlestart error, i would have had no chance to do this.
 

carbonyle

Well-Known Member
Member
Joined
Jan 9, 2009
Messages
360
Trophies
0
Age
40
Location
Switzerland
Website
Visit site
XP
116
Country
Swaziland
Ok I know it's beta stadium but I like to understand thing: why IOS15?
So we downgrade IOS15 (ok it's tricky we upgrade IOS15 since we give it a revision =0) to install a trucha capable IOS in 249 for the cIOS installation.
But why 15? why install IOS36 in 249? can't we use the IOS15 in the cIOS installer ? (since trucha is back)
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
carbonyle said:
Ok I know it's beta stadium but I like to understand thing: why IOS15?
So we downgrade IOS15 (ok it's tricky we upgrade IOS15 since we give it a revision =0) to install a trucha capable IOS in 249 for the cIOS installation.
But why 15? why install IOS36 in 249? can't we use the IOS15 in the cIOS installer ? (since trucha is back)

IOS15, because i knew that IOS16v257 works in boot2v4 Wiis, so i assumed that IOS15v257 that is almost identical to IOS16v257 will also work. And it does.

Waninkoko does not use the same code to decrypt IOS as me. I can use most(all?) IOS to de and encrypt files, the code from Waninkoko can do that only with IOS that are module seperated, so his installer fails when it uses the trucha capable IOS. The error -1017 is misleading here, because it's not missing trucha bug here.

This is why i tell to install a trucha capable IOS36. Where you install it does not really matter. The next version will give it a lower revison when installed as IOS249, so that the cIOS installation isn't a "downgrade" anymore(some people have -1035 now).
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
carbonyle said:
Ok things become clearer now. So in theory we can install the IOS36 (or install another IOS) anywhere (exept if there is already something)

You can install it everywhere, but i won't support other than the 3 slots you can select from. It should only fail if it's a downgrade, upgrades should always work.
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
comex said:
Finally
tongue.gif

Thanks for the hints.
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
For example:
"ES_AddTitleStart failed: ...", not downloading first before doing anything, and not doing a clean reinstall to leave no traces.
 

fogbank

Well-Known Member
Member
Joined
Oct 28, 2008
Messages
413
Trophies
0
XP
56
Country
United States
WiiPower said:
For example:
"ES_AddTitleStart failed: ...", not downloading first before doing anything, and not doing a clean reinstall to leave no traces.

I've been trying to figure out how comex's worked without a file on SD and without downloading anything first. If ES_AddTitleStart requires a TMD and a cert, I thought of reading it from the NAND but I think I'm running into permissions problems:

/sys/cert.sys
/title/00000001/0000000x/content/title.tmd

I am able to open them using ISFS_Open but I can't even retrieve the stats with ISFS_GetFileStats (trying to get the file length to supply to ISFS_Read). If I reload cIOS I can get the file length of cert.sys but not title.tmd. And that's cheating anyway.

It could be my bad coding, and I'm probably way off base anway...?
 

WiiPower

Well-Known Member
Member
Joined
Oct 17, 2008
Messages
8,165
Trophies
0
XP
345
Country
Gambia, The
comex said:
But why would an ES_AddTitleStart error tell you anything about /tmp/title.tmd?

Well since my Wii is not connected via wifi, i could assume you execute ES_AddTitleStart to set the revision to 0. The nice coincidence was that i was working at fstoolbox at that time.
*Edit: And then of course i looked at the revison 0 tmd and my eyes fell off my head...

fogbank said:
QUOTE(WiiPower @ Jul 3 2009, 10:16 AM) For example:
"ES_AddTitleStart failed: ...", not downloading first before doing anything, and not doing a clean reinstall to leave no traces.

I've been trying to figure out how comex's worked without a file on SD and without downloading anything first. If ES_AddTitleStart requires a TMD and a cert, I thought of reading it from the NAND but I think I'm running into permissions problems:

/sys/cert.sys
/title/00000001/0000000x/content/title.tmd

I am able to open them using ISFS_Open but I can't even retrieve the stats with ISFS_GetFileStats (trying to get the file length to supply to ISFS_Read). If I reload cIOS I can get the file length of cert.sys but not title.tmd. And that's cheating anyway.

It could be my bad coding, and I'm probably way off base anway...?

Well i just figured that comex reads this from nand somehow. If you can read the file but not get the size, that's not a problem. You could just read more than required and calculate the size of the tmd.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
    cearp @ cearp: and Psi - I had a cd player / radio that played mp3 cds once, very cool