Hacking Wii U eMMC (nand) read/write? Read before flaming:-)

endoverend

AKA zooksman
Member
Joined
Jun 6, 2013
Messages
2,846
Trophies
0
Website
zooksman.com
XP
2,907
Country
United States
"The average cost for electricity in the US is $0.12 per kWh. For a single server I'll use 3741 kWh annually as an estimate. That would be about $450 per year for one machine.
Let's say you can do 1014 decryptions per second. That is 3.151021 decrypts per year for one machine. You need to do (on average) 2255 decryptions in a year, so you would need 22553.1510211.841055 machines. To figure your cost you would multiply that by $450 and get about $81057 or 8 octodecillion dollars. World GDP is about 631012, so brute-forcing a 256-bit key would cost about 1044 times the world GDP.
You can follow similar math to get the cost of brute forcing a 128-bit key."
 
  • Like
Reactions: VinsCool

dojafoja

life elevated
Member
Joined
Jan 2, 2014
Messages
696
Trophies
1
XP
2,608
Country
"The average cost for electricity in the US is $0.12 per kWh. For a single server I'll use 3741 kWh annually as an estimate. That would be about $450 per year for one machine.
Let's say you can do 1014 decryptions per second. That is 3.151021 decrypts per year for one machine. You need to do (on average) 2255 decryptions in a year, so you would need 22553.1510211.841055 machines. To figure your cost you would multiply that by $450 and get about $81057 or 8 octodecillion dollars. World GDP is about 631012, so brute-forcing a 256-bit key would cost about 1044 times the world GDP.
You can follow similar math to get the cost of brute forcing a 128-bit key."
Man that was complex! Lol you just blew my mind.
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
"The average cost for electricity in the US is $0.12 per kWh. For a single server I'll use 3741 kWh annually as an estimate. That would be about $450 per year for one machine.
Let's say you can do 1014 decryptions per second. That is 3.151021 decrypts per year for one machine. You need to do (on average) 2255 decryptions in a year, so you would need 22553.1510211.841055 machines. To figure your cost you would multiply that by $450 and get about $81057 or 8 octodecillion dollars. World GDP is about 631012, so brute-forcing a 256-bit key would cost about 1044 times the world GDP.
You can follow similar math to get the cost of brute forcing a 128-bit key."
Wanna try that again?http://stackoverflow.com/questions/18847580/aes128-vs-aes256-using-bruteforce
http://www.theregister.co.uk/2011/08/19/aes_crypto_attack/
 

Bug_Checker_

Well-Known Member
Member
Joined
Jun 10, 2006
Messages
950
Trophies
0
XP
664
Country
United States
"The average cost for electricity in the US is $0.12 per kWh. For a single server I'll use 3741 kWh annually as an estimate. That would be about $450 per year for one machine.
Let's say you can do 1014 decryptions per second. That is 3.151021 decrypts per year for one machine. You need to do (on average) 2255 decryptions in a year, so you would need 22553.1510211.841055 machines. To figure your cost you would multiply that by $450 and get about $81057 or 8 octodecillion dollars. World GDP is about 631012, so brute-forcing a 256-bit key would cost about 1044 times the world GDP.
You can follow similar math to get the cost of brute forcing a 128-bit key."


And that would be for just ONE console specific key.
If you want to transfer stuff to test if it were possible, you would need a second console specific key (double the fun/time/cost).

On the matter of backup /restore, I would have more confidence if people understood NAND(wear-leveling and many more control/data pins) vs EMMC ( NAND w/controller interface) with a lot less pins.
What serial flash is/was?
How many memory chips may have to be in sync to avoid a brick?
What to do if the NAND has a wear-leveling problem?
How to verify you have (a) good dump(s)?
Or simply, that you can't easily access an 8 bit bus when only 4 bits(D0-D3) are used.
 
  • Like
Reactions: VinsCool

endoverend

AKA zooksman
Member
Joined
Jun 6, 2013
Messages
2,846
Trophies
0
Website
zooksman.com
XP
2,907
Country
United States
AES-256 is the standardized encryption specification. It's used worldwide by everyone from corporations to the US government. It's largest key size is 256 bits. This means that the key, the thing that turns encrypted data into unencrypted data, is string of 256 1s or 0s.
With each character having two possibilities (1 or 0), there are 2256 possible combinations. Typically, only 50% of these need to be exhausted to yield the correct key, so only 2255 need to be guessed. How long would it take to flip through each of the possible keys?
When doing mundane, repetitive calculations (such as brute-forcing or bitcoin mining), the GPU is better suited than the CPU. A high-end GPU can typically do about 2 billion calculations per second (2 gigaflops). So, we'll use GPUs.
Say you had a billion of these, all hooked together in a massively parallel computer system. Together, they could perform at 2e18 flops, or
2 000 000 000 000 000 000 keys per second (2 quintillion)
1 billion gpus @ 2 gigaflops each (2 billion flops)
Since there are 31 556 952 seconds in a year, we can multiply by that to get the keys per year.
*31 556 952 =6.3113904e25 keys per year (~10 septillion, 10 yottaflops)
Now we divide 2255 combinations by 6.3113904e25 keys per year:
2^255 / 6.3113904e25 =9.1732631e50 years
The universe itself only existed for 14 billion (1.4e10) years. It would take ~6.7e40 times longer than the age of the universe to exhaust half of the keyspace of a AES-256 key.


Also, in the second article you linked, it said the flaw in AES could cause the time required to find the key to be 5 times faster than brute force. That's still longer than even feasible.
 
  • Like
Reactions: VinsCool

endoverend

AKA zooksman
Member
Joined
Jun 6, 2013
Messages
2,846
Trophies
0
Website
zooksman.com
XP
2,907
Country
United States

Bug_Checker_

Well-Known Member
Member
Joined
Jun 10, 2006
Messages
950
Trophies
0
XP
664
Country
United States
  • Like
Reactions: VinsCool

Ray Lewis

Banned!
OP
Banned
Joined
Dec 30, 2012
Messages
1,518
Trophies
0
XP
419
Country
United States
The point of this was never to naively try to brute force anything. I saw Marcan showed up. The as key and others are known for the vWii. I don't know enough to understand the key aspect. My only point of reference is the 360 and the 3ds. I have not caught up on the 3ds scene since the 7.x firmware.
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
The point is, don't hope to get the keys by brute force. But good luck with the dumping, I'm sure it will be very useful.
Okay, i see what you're saying. I guess i was misinformed then. Perhaps, i should revert back to the original plan, a MITM attack. Either that or trying to bit bang for the key and dump it that way....

Anyways, lets see if its possible to get an accurate dump of the nand and flash it back before we try and get any keys...
 

Ray Lewis

Banned!
OP
Banned
Joined
Dec 30, 2012
Messages
1,518
Trophies
0
XP
419
Country
United States
Okay, i see what you're saying. I guess i was misinformed then. Perhaps, i should revert back to the original plan, a MITM attack. Either that or trying to bit bang for the key and dump it that way....

Anyways, lets see if its possible to get an accurate dump of the nand and flash it back before we try and get any keys...
The original plan is my OP. If you want to do something by yourself then please keep it to yourself. When you mention brute forcing keys and MITM "attacks" that are not possible (0.0000000000000000000000000000000000000000000000000000001% chance to be accurate) it derails the thread and turns some people off as it is obviously not possible. There is nothing complicated about this. Maybe start your own thread about brute forcing keys and MITM attacks. The pictures you posted were good. I'd actually like to see others who have read (and written in time) their emmc/nand post pics of their "setup." I am not saying any of this to be mean but it derails and is really silly.

If anyone has (shares I should say) how to look at what is in the reads then that would be great. If it could ever be like the 360 or Wii then that would be a win in my mind. If you can contribute within the scope of the OP then please do so. It seemed like you were on your way (from your pictures). Otherwise, there is no team, there is no plan to "hack." This is simply about using a hardware angle to get some safety and MAYBE flexibility if people could revert.
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
The original plan is my OP. If you want to do something by yourself then please keep it to yourself. When you mention brute forcing keys and MITM "attacks" that are not possible (0.0000000000000000000000000000000000000000000000000000001% chance to be accurate) it derails the thread and turns some people off as it is obviously not possible. There is nothing complicated about this. Maybe start your own thread about brute forcing keys and MITM attacks. The pictures you posted were good. I'd actually like to see others who have read (and written in time) their emmc/nand post pics of their "setup." I am not saying any of this to be mean but it derails and is really silly.

If anyone has (shares I should say) how to look at what is in the reads then that would be great. If it could ever be like the 360 or Wii then that would be a win in my mind. If you can contribute within the scope of the OP then please do so. It seemed like you were on your way (from your pictures). Otherwise, there is no team, there is no plan to "hack." This is simply about using a hardware angle to get some safety and MAYBE flexibility if people could revert.

Okay fair enough :). I'll keep the key stuff out of the discussion. Lets just focus on dumping and reflashing official NAND images. IF I decide to pursue the console specific keys, I will create a brand new thread for that aspect.

Once I get a new power/eject cable, I will attempt to dump my NAND. If the dumping process starts, I will make a quick video of it running. Once that's done, I can attempt to flash it back as we have NOTHING to compare the image to see if it dumped properly. Again, if the console bricks, its not the end of the world. I can get a new console altogether with my tax refund if need be.

I'm willing to sacrifice my current console for this cause. With nothing to compare the NAND image too, the only way to find out if its valid would be to attempt to reflash it.
 

jammybudga777

Well-Known Member
Member
Joined
Aug 23, 2013
Messages
2,284
Trophies
1
Age
37
XP
2,193
Country
Okay fair enough :). I'll keep the key stuff out of the discussion. Lets just focus on dumping and reflashing official NAND images. IF I decide to pursue the console specific keys, I will create a brand new thread for that aspect.

Once I get a new power/eject cable, I will attempt to dump my NAND. If the dumping process starts, I will make a quick video of it running. Once that's done, I can attempt to flash it back as we have NOTHING to compare the image to see if it dumped properly. Again, if the console bricks, its not the end of the world. I can get a new console altogether with my tax refund if need be.

I'm willing to sacrifice my current console for this cause. With nothing to compare the NAND image too, the only way to find out if its valid would be to attempt to reflash it.

why dont you just wait instead of getting ahead of yourself?? uve told us many many times about your power eject button so basically this thread isnt goin anywhere anytime soon. but yet we still have people repeating themselfs!! i do appriciate the minor things you do. but it would be nice to come to this site and either see NEW news or NO news :)
 

mixelpixx

hardware monkey
Member
Joined
Aug 10, 2014
Messages
133
Trophies
0
Location
y0uR m0mz b0x
XP
356
Country
United States
alright, if someone can shed some light on this for me (yes do my homework for me i guess) I am willing to wipe out my kids Wii U (they don't play it, much anyway) and I would like to delete all data from it, is there a factory restore option? I would be willing to share with those who are qualified (ie - actual Devs, meaning if you have no idea what to do with it, it's not for you) to try and minimize the effect of it being seen and my serial being blacklisted or worse yet getting a letter from someone telling me to stop being mean to their console. Time frame? Don't know, sometime in the next week. I downloaded most of the games on my unit, I have 2 64GB memsticks in it as well holding downloaded games, and they are pretty full as well. This has been the main reason for not f-ing with it, as thats a bit of cash in DL's I don't want to lose, let alone I will have to re-download some, if not all.

It's a 32GB unit purchased last Sept / October time frame, came with a 4.x firmware if I recall. Would love to know if that original firmware is still in there, also can anyone tell me sizes to look for and will HxD allow me to to do chip/partition select (worse case I stick a toggle switch on it with pull up and pull down and just manually select if we are just blind reading..) ? I am used to doing a straight JTAG or SPI to dump, the card reader approach seemed to work, but I did get multiple diff file sizes on all of my attempts. I am extending my hand to whoever wants to work on this --- is it possible (and again I mean no offense) to move this out of the daylight for a minute? We should know relatively fast whether or not a straight dump (a good one) and reflashing will work. But I will say its not worth going it alone, and not worth having someone blow smoke up my tush either --

The chips controller is an 8051 microcontroller, which if you look will see it was hacked to pieces long ago, I think it was actually used in some early CAMs / Smart cards back in the day.
 
  • Like
Reactions: TeamScriptKiddies

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
alright, if someone can shed some light on this for me (yes do my homework for me i guess) I am willing to wipe out my kids Wii U (they don't play it, much anyway) and I would like to delete all data from it, is there a factory restore option? I would be willing to share with those who are qualified (ie - actual Devs, meaning if you have no idea what to do with it, it's not for you) to try and minimize the effect of it being seen and my serial being blacklisted or worse yet getting a letter from someone telling me to stop being mean to their console. Time frame? Don't know, sometime in the next week. I downloaded most of the games on my unit, I have 2 64GB memsticks in it as well holding downloaded games, and they are pretty full as well. This has been the main reason for not f-ing with it, as thats a bit of cash in DL's I don't want to lose, let alone I will have to re-download some, if not all.

It's a 32GB unit purchased last Sept / October time frame, came with a 4.x firmware if I recall. Would love to know if that original firmware is still in there, also can anyone tell me sizes to look for and will HxD allow me to to do chip/partition select (worse case I stick a toggle switch on it with pull up and pull down and just manually select if we are just blind reading..) ? I am used to doing a straight JTAG or SPI to dump, the card reader approach seemed to work, but I did get multiple diff file sizes on all of my attempts. I am extending my hand to whoever wants to work on this --- is it possible (and again I mean no offense) to move this out of the daylight for a minute? We should know relatively fast whether or not a straight dump (a good one) and reflashing will work. But I will say its not worth going it alone, and not worth having someone blow smoke up my tush either --

The chips controller is an 8051 microcontroller, which if you look will see it was hacked to pieces long ago, I think it was actually used in some early CAMs / Smart cards back in the day.



Uploading that dump (even after wiping it) would still be a copyright violation as it contains Copywritten Nintendo code (CafeOS etc), what I suggest is if you have a friend IRL who's willing to dump/let you dump his/her NAND for comparison, do that.

If you were getting different file sizes every time you dumped it, that's not a good sign. It could just be that its switching between storage and the actual firmware etc, or it could be that the dumps are horribly inaccurate. If you could rig a toggle switch to see if you can control which portion gets dumped, then we can test that theory.

As for the "factory restore" it just wipes out any dlc, games you downloaded etc from both Wii U mode and vWii Mode, it doesn't actually wipe the NAND or anything like that. Your firmware will remain the same as that isn't touched when you "restore" the console. Console makers are too smart for that XD
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Good idea