Hacking WAIN Card Dumper NX

Masterwin

Well-Known Member
Member
Joined
Jan 7, 2016
Messages
382
Trophies
0
XP
603
Country
Spain
Here the source updated with the changes from 0.0.3:
https://www.dropbox.com/s/b1dofgp2ntsnvji/Switch Gamecard dumper + WAIN v0.0.3.zip?dl=0
Note: WAIN uses 2000000000 (1,86 GB) instead of 2147483648 (2GB), my version uses 2GB, see "dumper.h"

Tested and working with Super Mario Odyssey (8GB rom).

And before someone asks, no i don't know how to add cart2 support.

Note: if you get "MountGameCard failed" then your switch is on FW 1.0.0-2.3.0, the minimum required firmware for
this tool is 3.0.0, Nintendo changed some apis or permissions in 3.0.0 and so some code is broken on older firmwares, this has nothing to do with exfat.




not work in fw 3.0.0

FAIL 320002
 

DocKlokMan

Plugin Dev
OP
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
No i guess i fixed that myself when recreating the source ^^.

Code:
        //WAIN 0.0.3 fat32 support
        if(isFat32 && ftell(outFile) >= SPLIT_FILE_2GB)
        {
            splitId++;
            fclose(outFile);
            sprintf(filenamebuf, "game.xci%i", splitId);
            fopen(filenamebuf, "wb");
        }

the original code made a mistake here, it uses "if (isFat32 & ftell(outFile) >= SPLIT_FILE_2GB)", so i guess the check fails for part 1.
All parts dumped by my code are exact 2,00 GB.
Awesome! Now to bring it up to snuff with v.0.0.5:
image.jpg
 
  • Like
Reactions: Jayro

Masterwin

Well-Known Member
Member
Joined
Jan 7, 2016
Messages
382
Trophies
0
XP
603
Country
Spain
What game are you trying to dump ?
"MountGameCard failed 320002" means, that it can't read the partition on the gamecard.

@AnalogMan
If you have 0.0.5, you just need to send me the binary and i can recreate the source ^^.


I have released hbl by pegaswitch web, in fw 3.0.0 with sd fat32, I have mariokart and the error is failed 320002
0tns4KR.jpeg


nK6RMTG.jpeg
 

OkazakiTheOtaku

no thanks, I don't want a custom title
Member
Joined
Jul 20, 2016
Messages
1,461
Trophies
1
Location
127.0.0.1
XP
3,114
Country
Japan
you could use hxd to split the files
Well I'm not on windows so I don't have HxD, so I'll either have to use a different hex editor or find another program. Thanks though

EDIT: you and @dankzegriefer must not have known about this
good to see the option exists, and now I know for others if they ask
 
Last edited by OkazakiTheOtaku,

wicksand420

Well-Known Member
Member
Joined
Nov 13, 2016
Messages
2,787
Trophies
1
Age
39
XP
2,296
Country
United States
Well I'm not on windows so I don't have HxD, so I'll either have to use a different hex editor or find another program. Thanks though

EDIT: you and @dankzegriefer must not have known about this
good to see the option exists, and now I know for others if they ask
Yep, didn't know about that, but I don't use Unix either, I just use HxD for splitting and joining
 
  • Like
Reactions: OkazakiTheOtaku

runetoonxx2

GBATemp's Cancer
Member
Joined
Jan 15, 2014
Messages
1,502
Trophies
0
Age
24
Location
The GBATemp
XP
763
Country
United States
So when sx comes out use this to dump my botw cartridge and use its cert on all my dumps using xci explorer and hopefully itll be like sky3ds with private header right?
 

runetoonxx2

GBATemp's Cancer
Member
Joined
Jan 15, 2014
Messages
1,502
Trophies
0
Age
24
Location
The GBATemp
XP
763
Country
United States
If you are talking about the certificate on the cartridge, you cannot edit it no matter what. The cartridge cannot be edited because it is read-only meaning it is only meant to be run. The files on it cannot be modified within the cartridge. If you dump the cartridge, you can remove the certificate. Also, every single certificate is unique meaning no 2 licenses should ever be the same. Seeing 2 identical licenses online means that the game's data was illegally shared with someone else as there is no feasible way to do this outside of hacking.

When it comes to bans, they can ban the console, Nintendo Account, or both. Banning your Nintendo account is probably the least minor ban and because of this, it probably won't be the one they will opt for. Banning your console means they will deny all requests made by your console's unique certificate when doing anything online-related apart from game and system updates. The only way to bypass a ban right now is to inject another certificate from a donor Switch that is not banned which is the same thing as buying another Switch.
how would be go about injecting a certificate from a donor switch???
 

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
19,019
Trophies
2
Age
29
Location
New York City
XP
13,408
Country
United States
how would be go about injecting a certificate from a donor switch???
First, we would need a way to dump/dupe the certificate from a Switch (which we cannot do yet). Then we would need a tool that can write/insert that certificate into the affected Switch (which we also cannot do). This is just one theoretical way of un-banning Switches which is not currently possible, but can be based on what we know.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Psionic Roshambo @ Psionic Roshambo:
    That Dell data breach is worse than people probably realize....
  • Psionic Roshambo @ Psionic Roshambo:
    When I worked for Dell we had access to data about military contracts and addresses for high ranking people.
  • Psionic Roshambo @ Psionic Roshambo:
    I personally handled a call from the second highest person at Raytheon. That call bothered me a lot... The guy was nice and smart what bothered me was the way management basically just blew him off instead of going the extra mile to help him.
  • Psionic Roshambo @ Psionic Roshambo:
    In the end that call ended up costing Dell millions in lost contracts with Raytheon, and really the issue could have been solved for like 450 bucks lol
  • NinStar @ NinStar:
    sometimes I wonder why anyone would ever buy mega man x legacy collection 2
  • NinStar @ NinStar:
    I always thought that capcom shuffled the games in these collection, but apparently they are all in chronological order, which makes legacy collection 2 worthless
  • BakerMan @ BakerMan:
    guys, i want to start singing pirate metal songs and sea shanties if i play sea of thieves
  • The Real Jdbye @ The Real Jdbye:
    find a pirate metal playlist
    +2
  • The Real Jdbye @ The Real Jdbye:
    and sing along
  • BakerMan @ BakerMan:
    nevermind i just learned swearing is against the rules in sea of thieves

    i was about to start singing the song i last put in "what song are you currently listening to" yesterday
  • BakerMan @ BakerMan:
    but yeah ig so
  • The Real Jdbye @ The Real Jdbye:
    swearing not allowed in a pirate game? what has the world come to
  • BakerMan @ BakerMan:
    (here's the song for context)
  • BigOnYa @ BigOnYa:
    Just add -izle to the end of every curse word, you will be fine.
    +2
  • The Real Jdbye @ The Real Jdbye:
    i like alestorm
    +1
  • The Real Jdbye @ The Real Jdbye:
    @BigOnYa too many syllables
    +1
  • BakerMan @ BakerMan:
    same lmao
  • BigOnYa @ BigOnYa:
    hi, welcome to the Temp!
    +1
  • BakerMan @ BakerMan:
    Welcome to the Underground!
    +1
  • BakerMan @ BakerMan:
    the booty boogie from (once again) the donkey kong country cartoon could also be a good song to sing while playing sea of thieves
  • BigOnYa @ BigOnYa:
    Please insert 25 cents for an additional 30 minutes of talk time.
    +2
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=tG7fk_DUz5g +1