Homebrew [Port/Release] 3DSFAT16Tool - C Rewrite by d0k3

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Great work! I have a problem though in that my xorpad file is a "bad size". Created in rxTools. Could someone tell me where I've gone wrong? Does my 3DS need to be on a particular firmware, for example?

Edit: nvm, I used Decrypt9 running with Ninjhax to create a proper Fat16.xorpad and worked fine. I didn't know that it was that easy to run Decrypt9!

Thanks everyone for your work!
Still, I wonder what happened - can you tell me what size your (rxTools) xorpad was? 3DSFAT16tool should work with xorpads from any source. And of course it is easy to run Decrypt9 ;).

Edit: Nevermind. I've checked the rxTools source code and noticed that rxTools dumps an additional ~2MB of garbage when generating the xorpad. I'll update 3DSFAT16tool later today.

Edit2: ... and 3DS Multi Tool does it the same way as rxTools with garbage at the end of the file. Fix badly needed I fear. Fix coming up later today.
 
Last edited by d0k3,

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Great work! I have a problem though in that my xorpad file is a "bad size". Created in rxTools. Could someone tell me where I've gone wrong? Does my 3DS need to be on a particular firmware, for example?
Okay, fixed and updated. @x7l7j8cc , your GUI won't need any adjustments for this but you may want to update the 3DSFAT16tool executable for better compatibility.
 
  • Like
Reactions: klear

x7l7j8cc

Well-Known Member
Newcomer
Joined
Jan 26, 2014
Messages
68
Trophies
1
Location
Italy
XP
1,797
Country
Italy
@d0k3

Well, i really wanted, but i cant...
Because i Use VB.NET, and your 3DSFAT16tool is in C/C++, and C/C++ Codes cant be ported to VB.NET.

I Can understand some codes of C/C++, but some codes for me is a Total Void.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
@d0k3

Well, i really wanted, but i cant...
Because i Use VB.NET, and your 3DSFAT16tool is in C/C++, and C/C++ Codes cant be ported to VB.NET.

I Can understand some codes of C/C++, but some codes for me is a Total Void.
Oh, you got me wrong. I meant: You may include the new 3DSFAT16tool executable (which I compiled, or compile yourself) in your GUI. Then you'll have better compatibility. No need to get your hands dirty with C/C++ coding ;).
 

Ikki Barri

Well-Known Member
Member
Joined
Apr 1, 2015
Messages
108
Trophies
0
XP
163
Country
United States
Still, I wonder what happened - can you tell me what size your (rxTools) xorpad was? 3DSFAT16tool should work with xorpads from any source. And of course it is easy to run Decrypt9 ;).

Edit: Nevermind. I've checked the rxTools source code and noticed that rxTools dumps an additional ~2MB of garbage when generating the xorpad. I'll update 3DSFAT16tool later today.

Edit2: ... and 3DS Multi Tool does it the same way as rxTools with garbage at the end of the file. Fix badly needed I fear. Fix coming up later today.

Awesome!
 

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
Trying to move 3DS-A emuNAND (9.9.0-26J) to 3DS-B emuNAND (10.5.0-30J), but failed.
Both 3DS-A and 3DS-B are O3DS.

Steps I did:

1) Dump both FAT16 XORPAD
2) Dump both emuNAND
3) Use 3DSFAT16Tool to decrypt + extract both CTR image
4) Use 3DSFAT16Tool + 3DS-B FAT16 XORPAD to inject decrypted 3DS-A CTR image to 3DS-B emuNAND
5) Restore 3DS-B emuNAND and try to boot it

The result is blackscreen.

Can anyone tell me what is wrong with it?
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Trying to move 3DS-A emuNAND (9.9.0-26J) to 3DS-B emuNAND (10.5.0-30J), but failed.
Both 3DS-A and 3DS-B are O3DS.

Steps I did:

1) Dump both FAT16 XORPAD
2) Dump both emuNAND
3) Use 3DSFAT16Tool to decrypt + extract both CTR image
4) Use 3DSFAT16Tool + 3DS-B FAT16 XORPAD to inject decrypted 3DS-A CTR image to 3DS-B emuNAND
5) Restore 3DS-B emuNAND and try to boot it

The result is blackscreen.

Can anyone tell me what is wrong with it?
What you're trying to do here won't work. Think about it, if the content of the NAND memory was that interchangable, would there ever have been a shortage of <= 9.2 consoles (when you could "downgrade" as many consoles as you'd like from just one good FW console, to be clear)? The encryption of the CTRNAND partition is not the only thing different between two same type, same region consoles, there's also something about the content of the CTRNAND that prevents us from just cloning NANDs to another console.
 

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
What you're trying to do here won't work. Think about it, if the content of the NAND memory was that interchangable, would there ever have been a shortage of <= 9.2 consoles (when you could "downgrade" as many consoles as you'd like from just one good FW console, to be clear)? The encryption of the CTRNAND partition is not the only thing different between two same type, same region consoles, there's also something about the content of the CTRNAND that prevents us from just cloning NANDs to another console.
Because System Transfer makes the NAND clone-able.
I want to find a way to do the similar thing without doing System Transfer.
Next time I may try partially replacing 3DS-B NAND files with 3DS-A NAND files. But now I cannot figure out what files need to move.
 
Last edited by MelonGx,

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Because System Transfer makes the NAND clone-able.
I want to find a way to do the similar thing without doing System Transfer.
Next time I may try partially replacing 3DS-B NAND files with 3DS-A NAND files. But now I cannot figure out what files need to move.
Would be great if you found something, but I guess one of the problems you will encounter with that is that not all of the files in CTRNAND are fully understood yet. Meaning: a file can have console specific and generic content alongside. Wishing you good luck, though, let us know if you find something!
 

Chrushev

Well-Known Member
Member
Joined
Jul 23, 2013
Messages
634
Trophies
1
XP
1,465
Country
Serbia, Republic of
Is this supposed to work on 10.6 emunand? I can get the output file, but once I rename it to ISO it says its corrupt and cant be mounted. Tried various mounting programs :/ help?
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Is this supposed to work on 10.6 emunand? I can get the output file, but once I rename it to ISO it says its corrupt and cant be mounted. Tried various mounting programs :/ help?
You can't generate a proper XORpad on EmuNAND 10.6. And you most likely used A9LH, which lead to other problems. Wait for the next release of Decrypt9WIP (most likely today) and try again.
 

Chrushev

Well-Known Member
Member
Joined
Jul 23, 2013
Messages
634
Trophies
1
XP
1,465
Country
Serbia, Republic of
You can't generate a proper XORpad on EmuNAND 10.6. And you most likely used A9LH, which lead to other problems. Wait for the next release of Decrypt9WIP (most likely today) and try again.
Hmm I actually was able to mount it on another ISO program and extract all the files needed... this is on O3DS... I do have N3DS that I plan to move stuff to that is running A9LH
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Hmm I actually was able to mount it on another ISO program and extract all the files needed... this is on O3DS... I do have N3DS that I plan to move stuff to that is running A9LH
Alright. I don't know if what you're planning to do will work, so keep a backup just to be safe.
 

Chrushev

Well-Known Member
Member
Joined
Jul 23, 2013
Messages
634
Trophies
1
XP
1,465
Country
Serbia, Republic of
  • Like
Reactions: d0k3

Chrushev

Well-Known Member
Member
Joined
Jul 23, 2013
Messages
634
Trophies
1
XP
1,465
Country
Serbia, Republic of
Nope didnt work. Xorpads are generated but when you XOR the Nand it gives corrupt output... same process works fine on o3DS... so this is a n3DS issue... you said you will be fixing it soon?
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Nope didnt work. Xorpads are generated but when you XOR the Nand it gives corrupt output... same process works fine on o3DS... so this is a n3DS issue... you said you will be fixing it soon?
It is already fixed, but wait for the proper release (as I told you above...). The next release of Decrypt9 will do what you want there.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-