Hacking ANNOUNCING: GATEWAY 2.1 "OMEGA" PUBLIC RELEASE

Status
Not open for further replies.

_Tim_

Well-Known Member
Newcomer
Joined
Dec 23, 2013
Messages
63
Trophies
0
Age
45
XP
230
Country
Belgium
Today I received the dreaded "Fragmentation Error" message for the first time. I think I figured out why it happens. I created a small program that scans a microSD card and detects these "errors".

UPDATE 1: I scanned another microSD card and my program reported 3 files with fragmentation errors. Only 1 of them actually triggers the "Fragmentation Error" message on my 3DS. I will have to investigate it further. If anyone has a microSD card with fragmentation errors, PM me.

UPDATE 2: I removed the attached file. Look a few posts down for the new version.
 

Bug_Checker_

Well-Known Member
Member
Joined
Jun 10, 2006
Messages
950
Trophies
0
XP
664
Country
United States
The brick code does exist in 2.1. I have no idea why you're doubting it.
It's in the Launcher.dat at offset 0x25160 size 0xB20. AES key 0x514E7232 0xDD58D52F 0xB1D257D2 0xB65E1CD4.

Here's a quick picture of the code from that region.
f4R9VRc.png


What I am doing wrong? I'm trying to checkout the code. I've decrypted the launcher.dat with the key from 2.x.

openssl enc -aes-128-cbc -d -K 580006192800C5F0FBFB04E06A682088 -iv 00000000000000000000000000000000 -nopad -in C:\GW_OMEGA_2.1_RELEASE\Launcher.dat -out C:\GW_OMEGA_2.1_RELEASE\Launcher_dec.dat
or
enc -aes-128-cbc -d -K 580006192800C5F0FBFB04E06A682088 -iv 00000000000000000000000000000000 -nopad -in C:\GW_OMEGA_2.1_RELEASE\Launcher.dat -out C:\GW_OMEGA_2.1_RELEASE\Launcher_dec.dat

Then I cut out 0xb20 byte block from Launcher_dec.dat @0x25160 as a filenamed Launcher_dec_0x25160_0xb20.dat .
Then I ran that thru openssl as:
openssl enc -aes-128-cbc -d -K 514E7232DD58D52FB1D257D2B65E1CD4 -iv 00000000000000000000000000000000 -nopad -in C:\GW_OMEGA_2.1_RELEASE\Launcher_dec_0x25160_0xb20.dat -out C:\GW_OMEGA_2.1_RELEASE\Launcher_dec_0x25160_0xb20_decrypted.dat
or
enc -aes-128-cbc -d -K 514E7232DD58D52FB1D257D2B65E1CD4 -iv 00000000000000000000000000000000 -nopad -in C:\GW_OMEGA_2.1_RELEASE\Launcher_dec_0x25160_0xb20.dat -out C:\GW_OMEGA_2.1_RELEASE\Launcher_dec_0x25160_0xb20_decrypted.dat

But it does not look like your code

Why I am having such a hard time? What have I missed? Is there a middle decryption step I'm missing or additional keys?
 

Ennea

Well-Known Member
Member
Joined
Oct 5, 2013
Messages
114
Trophies
0
Age
32
XP
163
Country
Gambia, The
Care to elaborate?

Simple: fragmentation. "NO!" Yes! The problem is as the error says, fragmentation. Files residing in non-adjacent blocks in the file system, instead of everything sticking together. Gateway can't handle it. I wouldn't download that program, who knows what's in it..
 

guardianx71

Member
Newcomer
Joined
Dec 12, 2012
Messages
23
Trophies
0
XP
96
Country
Greece
Yeah , I know what fragmentation is. I was asking as what his program does? Is it a simple deframenting tool or something else?
 

Bond697

Dies, died, will die.
Member
Joined
Jun 7, 2009
Messages
350
Trophies
0
Age
39
Location
CT
XP
464
Country
United States
What I am doing wrong? I'm trying to checkout the code. I've decrypted the launcher.dat with the key from 2.x.

openssl enc -aes-128-cbc -d -K 580006192800C5F0FBFB04E06A682088 -iv 00000000000000000000000000000000 -nopad -in C:\GW_OMEGA_2.1_RELEASE\Launcher.dat -out C:\GW_OMEGA_2.1_RELEASE\Launcher_dec.dat
or
enc -aes-128-cbc -d -K 580006192800C5F0FBFB04E06A682088 -iv 00000000000000000000000000000000 -nopad -in C:\GW_OMEGA_2.1_RELEASE\Launcher.dat -out C:\GW_OMEGA_2.1_RELEASE\Launcher_dec.dat

Then I cut out 0xb20 byte block from Launcher_dec.dat @0x25160 as a filenamed Launcher_dec_0x25160_0xb20.dat .
Then I ran that thru openssl as:
openssl enc -aes-128-cbc -d -K 514E7232DD58D52FB1D257D2B65E1CD4 -iv 00000000000000000000000000000000 -nopad -in C:\GW_OMEGA_2.1_RELEASE\Launcher_dec_0x25160_0xb20.dat -out C:\GW_OMEGA_2.1_RELEASE\Launcher_dec_0x25160_0xb20_decrypted.dat
or
enc -aes-128-cbc -d -K 514E7232DD58D52FB1D257D2B65E1CD4 -iv 00000000000000000000000000000000 -nopad -in C:\GW_OMEGA_2.1_RELEASE\Launcher_dec_0x25160_0xb20.dat -out C:\GW_OMEGA_2.1_RELEASE\Launcher_dec_0x25160_0xb20_decrypted.dat

But it does not look like your code

Why I am having such a hard time? What have I missed? Is there a middle decryption step I'm missing or additional keys?


you need to do the decryption with the 3ds hardware. it's key + keyscrambler, slot 0x3D.
 
  • Like
Reactions: Bug_Checker_

db2431

Member
Newcomer
Joined
Apr 22, 2006
Messages
19
Trophies
0
XP
196
Country
Can anyone tell me if its safe to install the ds profile exploit with an acekard 2i rather than the black/grey gateway ds cart?I prefer the acekard and don't want to be carrying 3 carts round when I want to go back to 3ds gateway mode from ds mode.
 

Snailface

My frothing demand for 3ds homebrew is increasing
Member
Joined
Sep 20, 2010
Messages
4,324
Trophies
2
Age
40
Location
Engine Room with Cyan, watching him learn.
XP
2,255
Can anyone tell me if its safe to install the ds profile exploit with an acekard 2i rather than the black/grey gateway ds cart?I prefer the acekard and don't want to be carrying 3 carts round when I want to go back to 3ds gateway mode from ds mode.
AK2i is only compatible up to v4.4.
 

Mr_Pichu

かわいいね!
Member
Joined
Dec 10, 2013
Messages
170
Trophies
0
XP
133
Country
United States
Today I received the dreaded "Fragmentation Error" message for the first time. I think I figured out why it happens. I created a small program that scans a microSD card and detects these "errors".

UPDATE: I scanned another microSD card and my program reported 3 files with fragmentation errors. Only 1 of them actually triggers the "Fragmentation Error" message on my 3DS. I will have to investigate it further. If anyone has a microSD card with fragmentation errors, PM me.


I hear this one works pretty well:
https://www.piriform.com/defraggler/builds
 

_Tim_

Well-Known Member
Newcomer
Joined
Dec 23, 2013
Messages
63
Trophies
0
Age
45
XP
230
Country
Belgium
After spending many hours trying to figure out why some fragmented files trigger the "Fragmentation Error" message and others don't, I think I finally figured it out. I updated my program and it detects with 100% accuracy which files are "bad" on all of my microSD cards. I already have an idea on how to "fix" the microSD card to prevent GW3DS fragmentation errors.
 

Attachments

  • scan_ver_1_2.zip
    42.1 KB · Views: 240

_Tim_

Well-Known Member
Newcomer
Joined
Dec 23, 2013
Messages
63
Trophies
0
Age
45
XP
230
Country
Belgium
Simple: fragmentation. "NO!" Yes! The problem is as the error says, fragmentation. Files residing in non-adjacent blocks in the file system, instead of everything sticking together. Gateway can't handle it. I wouldn't download that program, who knows what's in it..
Fragmentation itself is NOT the problem. I had files with 5 fragments which loaded just fine.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: Firefox users be like "look at what they have to do to mimic a fraction of our power."