ROM Hack [Release] ExInjector - Inject original exheaders into repacked roms

piratesephiroth

I wish I could read
OP
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
This solves about 90% of all compatibility problems with repacked roms, since issues usally come from exheader settings.
You don't need to waste time tweaking RSF files anymore. Get any good RSF file and you just have to set the obvious settings, like BasicInfo, CardInfo and Options. Leave the rest as is and build with any -desc template.
Inject the original exheader and you always get a flawlessly repacked rom.

It can also make any rom work from the SD and spoof firmware requirements as if the game was made for v4.0 (won't make the most recent games work though).

It's a command line tool but double clicking the exe will also work.

This method was originally discovered by ground, but it takes a bit of work to be done manually, so I made this crappy thing.
I also added a new feature: it can make any game work from the SD card, but only if your rom isn't encrypted.

It works via command line, so you can include it into your batch scripts but you can also double click the exe and it will ask you for the files.

(Remember you need to extract the exheader with ctrtool. If you dump it with 3DSExplorer it won't work)

Update 1:
Now it checks if it's a retail rom;
Doesn't use msg.exe anymore;

Update 2:
Supports NCCH files.
Changed bat example because -ccitocia option is buggy (thanks VerseHell)

Update 4:
Supports firmware spoofing, so more games can run on the CFW's 4.X NAND.
Any game that works with Gateway's firmware spoofing should work in the CFW as well.
Thanks, Riku, for the idea.

Update 5:
Only offfer fw spoofing if the selected rom requires it.

Update 6:
Fixed some little stuff and disable exheader's "SD App" flag if the "-sd" switch isn't used

Example:
here's what I used to repack Animal Crossing into a functional CIA file:
Code:
..\makerom -f ncch -target t -desc ecapp:3 -rsf gw.rsf -exefslogo -romfs extracted\xored_romfs.bin -exheader extracted\xored_exheader.bin -code extracted\exefs\code.bin -icon extracted\exefs\icon.bin -banner extracted\exefs\banner.bin -alignwr -o ANIMALTEST.CXI
..\exinjector -rom ANIMALTEST.cxi -exheader extracted\xored_exheader.bin -sd -fwspoof
..\makerom -f cia -target t -content ANIMALTEST.cxi:0:0 -o ANIMALTEST.cia
 

Attachments

  • rsfgen.py.zip
    2.7 KB · Views: 1,519
  • ExInjector.zip
    428.5 KB · Views: 3,061
Last edited by piratesephiroth,

PieFace

Well-Known Member
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
Can this be used also when the rom is encrypted and the .cia is rebuilt from the extracted binaries?
 

piratesephiroth

I wish I could read
OP
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
Can this be used also when the rom is encrypted and the .cia is rebuilt from the extracted binaries?

If the rom is encrypted we can't edit the exheader directly without resigning it. So it will only work as a CIA if the encrypted rom can already run from the SD.
 

PieFace

Well-Known Member
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
If the rom is encrypted we can't edit the exheader directly without resigning it. So it will only work as a CIA if the encrypted rom can already run from the SD.

Oh I see what your saying. I didn't read the first command all the way. So it builds the .3ds with the template exheader from makerom, then injects the actual exheader, then does -ccitocia.

Edit: I don't have my 3ds on me at the moment, will try when I get home. :)
 

Riku

Well-Known Member
Member
Joined
May 3, 2009
Messages
288
Trophies
0
XP
1,491
Country
United States
When using command
Code:
exinjector -rom MARIOTEST.3DS -exheader xored_exh.bin -sd
It throws this:

swOtcxW.png
 

Riku

Well-Known Member
Member
Joined
May 3, 2009
Messages
288
Trophies
0
XP
1,491
Country
United States
lol is your windows broken or what.
where's your msg.exe?

I'll edit it to handle that exception.
Also, is it possible to change kernel version without touching signature? It would be nice having ability to change kernel version so SDK5 games could work on 4.5 fw.
 

PieFace

Well-Known Member
Newcomer
Joined
Aug 4, 2014
Messages
59
Trophies
0
XP
157
Country
United States
Ok, when running it just says "ERROR Could not read exheader file!" I am 99.9% certain that the file name is correct and that the exheader is valid
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    I don't trust the free ones, but ipvanish I've used for couple years now, n like
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if they could get CPUs to run that hot then use the heat to power a steam turbine to power the CPUs....
  • BigOnYa @ BigOnYa:
    Good idea, or at least power the GPU
  • Psionic Roshambo @ Psionic Roshambo:
    It's not the movies or games downloads that I would worry about, like breaking into networks, downloading encrypted things, spying on network traffic. I have seen so many "Top Secret" seals on files when I was a kid
  • Psionic Roshambo @ Psionic Roshambo:
    I was obsessed with finding UFOs, a surprising amount of US files where stashed on computers in other countries, China back in the early 90s omg sooo much
  • BigOnYa @ BigOnYa:
    Yea that crazy, I've never tried hack into anything, I just pirate, and my ISP have send me 3-4 letters, so had to VPN it
  • Psionic Roshambo @ Psionic Roshambo:
    Ship to ship communication software for the Navy although without access to the encrypting chips it was mostly useless
  • Psionic Roshambo @ Psionic Roshambo:
    I bet now a 4090 could probably crack it? Hmmm maybe not even back then I'm pretty sure they where using like 1024 bit encryption
  • Psionic Roshambo @ Psionic Roshambo:
    Yayyy the one set finished 324GBs lol
  • Psionic Roshambo @ Psionic Roshambo:
    Compressed....
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder how many years that would have taken on a 56K modem lol
  • Psionic Roshambo @ Psionic Roshambo:
    18000 hours lol
  • Psionic Roshambo @ Psionic Roshambo:
    750 days lol
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    So Internet is very much faster now lol
  • BigOnYa @ BigOnYa:
    "Time Remaining- 2 years, 9 girlfriends, 6 hairstyles, please standby..."
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I remember one time I downloaded like a 500MB ISO file on 56K and that literally took like 2 days
  • Psionic Roshambo @ Psionic Roshambo:
    I had some sort of resume thing, I remember the software had chains
  • Psionic Roshambo @ Psionic Roshambo:
    Damned if I can't remember.the name though
  • Psionic Roshambo @ Psionic Roshambo:
    Some sort of download management app
  • BigOnYa @ BigOnYa:
    Ok good chatting, I'm off to the bar, to shoot some pool, nighty night.
    +1
  • BakerMan @ BakerMan:
    hey psi
  • BakerMan @ BakerMan:
    i call your girl lyndon the way she b on my johnson
    BakerMan @ BakerMan: i call your girl lyndon the way she b on my johnson