Hacking NTRCardHax Progress?

metroid maniac

An idiot with an opinion
Member
Joined
May 16, 2009
Messages
2,088
Trophies
2
XP
2,647
Country
People may be asking why do we need this when there's already a9 sploits on 9.2. Because, with this, we can use dgtool potentially to downgrade nfirm to 10.3 and just use ntrcardhax right there on firmware 11.x to install a9lh. In short, we can avoid the risk and trouble of ctrnand downgrades to 9.2 completely.

Is that really possible?
When does NTRcardhax trigger? As far as I understand things, NTRcardhax would need to gain arm9 code execution before kernel9 finishes initializing, because that's when the register containing the OTP hash is cleared.
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,000
Country
Micronesia, Federated States of
Is that really possible?
When does NTRcardhax trigger? As far as I understand things, NTRcardhax would need to gain arm9 code execution before kernel9 finishes initializing, because that's when the register containing the OTP hash is cleared.
I would assume we just go straight to ctrnand transfer to 2.1, skipping the downgrade to 9.2 step, considering that otpless was removed from the guide and all.

The bigger issue of ntrcardhax at the moment is that it relies on having an ak2i. We can only hope the flasher can be ported to other DS flashcards. I think it would be a great selling point. @tranfeer , you listening man? :P
 
Last edited by zoogie,
  • Like
Reactions: Wolfvak

Wolfvak

nyaa~
Member
Joined
Oct 25, 2015
Messages
918
Trophies
1
XP
3,486
Country
Uruguay
Is that really possible?
When does NTRcardhax trigger? As far as I understand things, NTRcardhax would need to gain arm9 code execution before kernel9 finishes initializing, because that's when the register containing the OTP hash is cleared.
You can do OTPLess with ARM9 access though... and ARM9 access is gained when the buffer is overflown, so you have to insert the card to trigger P9 to read it.

--------------------- MERGED ---------------------------

The bigger issue of ntrcardhax at the moment is that it relies on having an ak2i. We can only hope the flasher can be ported to other DS flashcards.
There was some work being done by @Kitlith with a RPi https://github.com/kitling/NTRPi/
Not sure how far it has gone though.
 
  • Like
Reactions: zoogie

metroid maniac

An idiot with an opinion
Member
Joined
May 16, 2009
Messages
2,088
Trophies
2
XP
2,647
Country
I would assume we just go straight to ctrnand transfer to 2.1, skipping the downgrade to 9.2 step, considering that otpless was removed from the guide and all.

The bigger issue of ntrcardhax at the moment is that it relies on having an ak2i. We can only hope the flasher can be ported to other DS flashcards. I think it would be a great selling point. @tranfeer , you listening man? :P
;

That makes more sense, the way it was worded makes it seem as though NTRcardhax would expose OTP data without 2.1 downgrade being necessary.

You can do OTPLess with ARM9 access though... and ARM9 access is gained when the buffer is overflown, so you have to insert the card to trigger P9 to read it.

"OTPless", the key-rearranging method, is pretty dangerous and N3DS exclusive. Better not to do things that way.
 

Wolfvak

nyaa~
Member
Joined
Oct 25, 2015
Messages
918
Trophies
1
XP
3,486
Country
Uruguay
is pretty dangerous
AFAIK no developer has been able to replicate the issue, and no bricked NAND dumps were sent... so I'll just disregard it. There's no verifiable source that it actually even happened, just the word of a bunch of people

and N3DS exclusive
Yeah, I'm expecting this method to be used mostly for consoles that have no other exploitable firmwares, like KOR/CHN/TWN N3DS'.
 
  • Like
Reactions: Zidapi

d3m3vilurr

Well-Known Member
Newcomer
Joined
Jun 2, 2016
Messages
51
Trophies
0
Age
39
XP
104
Country
Hi.

I already installed a9lh to my kor n3ds using ntrcardhax at yesterday. https://twitter.com/d3m3vilurr/status/809078062209867776
so. yes it can. in before explained, if you get arm9 exploit, you not need any extra steps(like sys downgrade). just do ctr transfer & otpless a9lh install.(and i used ctr transfer)

1. if you can downgrade to 9.2, ntrcardhax not need and maybe useless, ntrcardhax still need extra device ( currently :) )
2. but some other regions(yes actually korea version), cannot choice dg, because they not exists <= 9.6 firms.
3. so these devices only have one option, ntrcardhax.

--

running step.
0. require ak2i, arm9 executable 3ds(not made dsi version installer yet, also @Kitlith try to make powersaves version), <= 10.3 n3ds (currently not add o3ds entrypoints) and little linux skill :)
1. download https://github.com/d3m3vilurr/Decrypt9WIP/releases/tag/20161113-ak2i
2. run mod decrypt9wip, you can find dump and inject menu in `Gamecart Dumper options`
3. dump ak2i
4. you can find `ak2i_flash.bin` in sdcard (maybe files9, decrypt9, or ...), copy to pc
5. you need build https://github.com/d3m3vilurr/ntrcardhax/tree/more
```
git clone https://github.com/d3m3vilurr/ntrcardhax
cd ntrcardhax
git checkout more
cd auto_ntrcardhax
make
```
6. patch
```
python scripts/split.py ak2i_flash.bin
cp ak2i_flash.bin.out ak2i_flash81_ntrcardhax_template.bin # in my case this file's md5 checksum is a7c3ec29a2282981ba7946d608b8675d
./auto_ntrcardhax n 21288 # currently only support n3ds system, and 2nd argument is target 3ds nand version. only support 9.0 ~ 10.3
```
7. copy ak2i_flash81_ntrcardhax.bin to sdcard
8. inject ak2i
10. unzip https://github.com/d3m3vilurr/ntrcardhax/releases/tag/0.0-pre to target 3ds
11. rename any arm9 payload(like decrypt9wip.bin) to load.bin and copy target 3ds's sdcard root.
12. launch hbl & launch ntrcardhax_arm11
13. ak2i cartridge insert, if system stuck, just retry step 12~13

--

next plan,
1. remove auto_ntrcardhax and feature merge to flasher.
2. make flasher for nds & ndsi

--

@Normmatt made all works, I just do code cleanup. :)
 

Kitlith

Well-Known Member
Newcomer
Joined
Jan 29, 2016
Messages
93
Trophies
0
Location
Trapped between a rock and a hard place
Website
kitl.pw
XP
218
Country
United States
There was some work being done by @Kitlith with a RPi https://github.com/kitling/NTRPi/
Not sure how far it has gone though.
So, This is the exact testcase I had in mind when I stopped implementing 'features' in NTRPi after I tried to implement reading the header. The only issue: The Pi may or may not be too slow. If the current varient of NTRPi doesn't work, I'm sure something could be hacked together for this case, but it won't be as versitile as originally intended. (would be doing nothing else but pushing data out from a big, specially constructed buffer to the time of CLK)

Maybe I should go work on a 'dumb' version of NTRPi that does exactly that, along with a build system to facilitate it, just in case.

I guess 9.2 downgrades aren't possible for those consoles.
No, indeed, KOR/CHN/TWN N3ds' does no have a 9.2 to downgrade to. @d3m3vilurr has been working on getting NTRCardHax working for a while so that these consoles could, indeed, have a way to access arm9 and CFW/arm9loaderhax.

EDIT: And, right, I'm working on adapting Powerslaves, to be able to do the required ak2i stuff to get ntrcardhax up/running. I've got the dumping code down, I believe, so now the flashing code needs to be done. Hurrah.
 
Last edited by Kitlith,
  • Like
Reactions: Wolfvak

pbanj

The "friendly" neighborhood sandwich
Member
Joined
Dec 29, 2014
Messages
2,746
Trophies
1
Location
in a ziploc
Website
pbanjin.space
XP
1,661
Country
United States
AFAIK no developer has been able to replicate the issue, and no bricked NAND dumps were sent... so I'll just disregard it. There's no verifiable source that it actually even happened, just the word of a bunch of people


Yeah, I'm expecting this method to be used mostly for consoles that have no other exploitable firmwares, like KOR/CHN/TWN N3DS'.

I sent @Aurora Wright bricked nand dumps and xorpads
 

Zidapi

Well-Known Member
Member
Joined
Dec 1, 2002
Messages
3,112
Trophies
3
Age
42
Website
Visit site
XP
2,681
Country
People may be asking why do we need this when there's already a9 sploits on 9.2. Because, with this, we can use dgtool potentially to downgrade nfirm to 10.3 and just use ntrcardhax right there on firmware 11.x to install a9lh. In short, we can avoid the risk and trouble of ctrnand downgrades to 9.2 completely.
AFAIK there's no pre-9.6 N3DS firmwares for KOR/CHN/TWN as well, so it'll come in handy for them.
No, indeed, KOR/CHN/TWN N3ds' does no have a 9.2 to downgrade to
Well, this is great news for our friends in The East. Congrats to all involved in getting this far!
 
  • Like
Reactions: proflayton123

d3m3vilurr

Well-Known Member
Newcomer
Joined
Jun 2, 2016
Messages
51
Trophies
0
Age
39
XP
104
Country
Hello, I updated my modified applications,

## Inject ntrcardhax to AK2I
https://github.com/d3m3vilurr/Decrypt9WIP/releases

- now support one step action; just choose `Auto NTRCARDHAX to AK2i`, it mean no more need any linux skill and removed step 5~7
- but I still recommend backup your ak2i bootrom
- `auto` is not really, you still need selecting target 3ds device type and nand version
- and now support old 3ds

## ntrcardhax_arm11
https://github.com/d3m3vilurr/ntrcardhax/releases

- now can support 9.0~9.2; original code only work 9.3~10.3 (but anyone need this? ;))
 

Cuphat

Well-Known Member
Member
Joined
May 16, 2011
Messages
1,295
Trophies
1
XP
1,223
Country
United States
I assume you can restore the AK2i back to normal after?

Not super useful unless you have a console that doesn't have a 9.2 to downgrade to, but super useful if you do. Either way, that's neat. :)
 
Last edited by Cuphat,

Razor83

Well-Known Member
Member
Joined
Dec 23, 2009
Messages
391
Trophies
1
XP
1,758
Country
Hello, I updated my modified applications,

## Inject ntrcardhax to AK2I
https://github.com/d3m3vilurr/Decrypt9WIP/releases

- now support one step action; just choose `Auto NTRCARDHAX to AK2i`, it mean no more need any linux skill and removed step 5~7
- but I still recommend backup your ak2i bootrom
- `auto` is not really, you still need selecting target 3ds device type and nand version
- and now support old 3ds

## ntrcardhax_arm11
https://github.com/d3m3vilurr/ntrcardhax/releases

- now can support 9.0~9.2; original code only work 9.3~10.3 (but anyone need this? ;))
Really nice work!

Might it be possible to fix a bricked AK2i with this?
Also, any chance the code can be ported to the R4i Gold?

I believe the bootloader for both cards is stored on a 16Mbit flash memory chip:-
Acekard 2i - SST39VF1681
R4i Gold - W25Q16BVSIG
 

proflayton123

The Temp Loaf'
Member
Joined
Jan 11, 2016
Messages
6,032
Trophies
1
Age
24
Location
日本
Website
www.facebook.com
XP
3,218
Country
Japan
Hello, I updated my modified applications,

## Inject ntrcardhax to AK2I
https://github.com/d3m3vilurr/Decrypt9WIP/releases

- now support one step action; just choose `Auto NTRCARDHAX to AK2i`, it mean no more need any linux skill and removed step 5~7
- but I still recommend backup your ak2i bootrom
- `auto` is not really, you still need selecting target 3ds device type and nand version
- and now support old 3ds

## ntrcardhax_arm11
https://github.com/d3m3vilurr/ntrcardhax/releases

- now can support 9.0~9.2; original code only work 9.3~10.3 (but anyone need this? ;))

Interesting, nice work :)
 

d3m3vilurr

Well-Known Member
Newcomer
Joined
Jun 2, 2016
Messages
51
Trophies
0
Age
39
XP
104
Country
I assume you can restore the AK2i back to normal after?

Not super useful unless you have a console that doesn't have a 9.2 to downgrade to, but super useful if you do. Either way, that's neat. :)
yes, you can.
just copy dumped binary(named ak2i_flash.bin) to ak2i_patch.bin, then inject.

but probably, your mod ak2i will work normal without restore.

Really nice work!

Might it be possible to fix a bricked AK2i with this?
Also, any chance the code can be ported to the R4i Gold?

I believe the bootloader for both cards is stored on a 16Mbit flash memory chip:-
Acekard 2i - SST39VF1681
R4i Gold - W25Q16BVSIG

maybe can restore if you have valid bootrom.
 
Last edited by d3m3vilurr,

VashTS

Beat it, son
Member
Joined
Mar 14, 2009
Messages
4,308
Trophies
1
Age
39
Location
Upstate NY
XP
3,764
Country
United States
yes, you can.
just copy dumped binary(named ak2i_flash.bin) to ak2i_patch.bin, then inject.

but probably, your mod ak2i will work normal without restore.



maybe can restore if you have valid bootrom.


Wait wait wait - does this mean I can launch decrypt9 from an AK2i on 10.3 and downgrade? if so that is friggin just what I needed to fix this frankenstein 3ds i have!
 

d3m3vilurr

Well-Known Member
Newcomer
Joined
Jun 2, 2016
Messages
51
Trophies
0
Age
39
XP
104
Country
Wait wait wait - does this mean I can launch decrypt9 from an AK2i on 10.3 and downgrade? if so that is friggin just what I needed to fix this frankenstein 3ds i have!
if you have `injected ak2i` and 9.0~10.3 verison 3ds, you can launch arm9 payloads (like luma3ds, safe a9lh installer, decrypt9wip, ...)
 
  • Like
Reactions: VashTS

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu