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

  • Thread starter Thread starter piratesephiroth
  • Start date Start date
  • Views Views 123,898
  • Replies Replies 343
  • Likes Likes 29
I downloaded the latest one and it works fine now. Whatever you did recently fixed it because I downloaded it straight from the topic last night and it still did it. Thanks!
 
I downloaded the latest one and it works fine now. Whatever you did recently fixed it because I downloaded it straight from the topic last night and it still did it. Thanks!
What? did this version work for you? did you spoof the fw?
Now I'm confused...
 
I was using the batch file contained in the csu-to-cia release someone posted (sorry can't remember who and the search is too stingy) and the code is like this:

Code:
cd /d "%~dp0"
ctrtool --exheader temp\extracted\exheader.bin --romfs temp\extracted\romfs.bin --exefsdir temp\exefs --logo temp\extracted\logo.bin %1
notepad RSF.rsf
makerom -f cci -target t -desc app:3 -rsf RSF.rsf -romfs temp\extracted\romfs.bin -logo temp\extracted\logo.bin -exheader temp\extracted\exheader.bin -code temp\exefs\code.bin -icon temp\exefs\icon.bin -banner temp\exefs\banner.bin -alignwr -o temp\compiled.3ds
exinjector -rom temp\compiled.3ds -exheader temp\extracted\exheader.bin -sd
makerom -target t -ccitocia temp\compiled.3DS -o "%~dp1%~n1.cia"
cd temp
del compiled.3ds
cd extracted
del *.bin
cd ..
cd exefs
del *.bin
pause
I added -fwspoof to the end of the exinjector line last night and it was throwing up "too many arguments". If I clicked ok, it just kept going with the conversion. I re-downloaded exinjector after you replied to my post and dropped the csu on the batch and it didn't throw the error. I am trying to make a playcoinsetter that works on the 4.5 cfw (not Gateway) for someone else so I can't actually test if it worked until they get back to me.
 
I was using the batch file contained in the csu-to-cia release someone posted (sorry can't remember who and the search is too stingy) and the code is like this:

Code:
cd /d "%~dp0"
ctrtool --exheader temp\extracted\exheader.bin --romfs temp\extracted\romfs.bin --exefsdir temp\exefs --logo temp\extracted\logo.bin %1
notepad RSF.rsf
makerom -f cci -target t -desc app:3 -rsf RSF.rsf -romfs temp\extracted\romfs.bin -logo temp\extracted\logo.bin -exheader temp\extracted\exheader.bin -code temp\exefs\code.bin -icon temp\exefs\icon.bin -banner temp\exefs\banner.bin -alignwr -o temp\compiled.3ds
exinjector -rom temp\compiled.3ds -exheader temp\extracted\exheader.bin -sd
makerom -target t -ccitocia temp\compiled.3DS -o "%~dp1%~n1.cia"
cd temp
del compiled.3ds
cd extracted
del *.bin
cd ..
cd exefs
del *.bin
pause
I added -fwspoof to the end of the exinjector line last night and it was throwing up "too many arguments". If I clicked ok, it just kept going with the conversion. I re-downloaded exinjector after you replied to my post and dropped the csu on the batch and it didn't throw the error. I am trying to make a playcoinsetter that works on the 4.5 cfw (not Gateway) for someone else so I can't actually test if it worked until they get back to me.
the weirdest part is that I didn't touch the command-line parsing code... only the fw spoofing patch
 
Btw, your new exinjector is broken, using this even games that earlier worked crashes on starting > turn 3ds off.
Well, there's a very good reason nothing is patched on "Attack of the Friday Monsters! A Tokyo Tale".
It already is a v4.0 game that runs from the SD card.

I"ll see what's up with this broken thing now.
 
3ds to cia v1.06

cia9ys6v.png


Required:

Python 2.7
(Add Path to windows enviroments!)

How to use:
1. Create your xorpads and put all files into 3ds to cia dir
2. Drag n drop .3ds / .3dz on make.bat

Freatures:

7.x Support
Region Free fix
Offers injecting original EXHEADER
Offers spoofing Firmware to 4.x
Offers using your own .rsf (no exinjector)
If a game manual is detected, it will be included
Choice to compress EXEFS - thx @ piratesephiroth
Added Downloadplay Support - thx @ Versehell

Info:
_makerom is 64bit makerom_x86 is 32bit

If your windows is 32bit, rename
makerom_x86 to _makerom (using _ in script!)

Included in Package:

ctrKeyGen
Launcher
slot0x25KeyX (you need to insert the key - google it!)

Changelog:

Batch cleaned
Menu added
 

Attachments

Can you make a revision of exinjector which allows to inject encrypted exheaders in encrypted rom ? Thanks.
Btw, exheader offset is always fixed in rom? If so which one? Is it the same for both cci and cia?
 
Can you make a revision of exinjector which allows to inject encrypted exheaders in encrypted rom ? Thanks.
Btw, exheader offset is always fixed in rom? If so which one? Is it the same for both cci and cia?

It can inject exheaders in encrypted repacked roms. It just can't modify them.
To inject a modified exheader in encrypted roms I'd need to fix the RSA signature. That verification is ignored for test mode (unencrypted) roms. (I even think that the CFW only accepts test mode roms, but I'm not sure about it)

Adding that feature is irrelevant since we only need to modify the exheader when we want to convert them to CIA, and both enumand and the CFW accept unencrypted roms fine.

If you want to run repacked roms on Gateway you can use ' -target g ' and the injector will work normally, it will inject the original exheader as it is and the rom will work. If it still won't work it means you missed something on makerom's command line or RSF (like 'EnableCompression' set to true when it should be false).
 
3ds to cia v2.00

3ds_to_cia_v2.00anuod.png


Required:

Python 2.7
(Add Path to windows enviroments!)
Example: c:\windows\system32;c:\python27

How to use:

1. Create your xorpads and put all files into 3ds to cia dir
2. *Drag n drop .3ds / .3dz on Make2.0.bat
3. Choose your Options and start

*Alternate Make2.0.bat <filename>.3ds

Diagnostic Mode:
1. Make2.0.bat <filename>.3ds >log.txt
2. Type your choices and press S to start
(Text is invisible in diagnostic Mode and stored in log.txt)

Freatures:

7.x Support
Region Free fix
Offers injecting original EXHEADER
Offers spoofing Firmware to 4.x
Offers using your own .rsf (no exinjector)
Download Play Support
Includes Manual when detected
Auto RSF - big thx @ Vappy

Info:
_makerom is 64bit makerom_x86 is 32bit

If your windows is 32bit, rename
makerom_x86 to _makerom (using _ in script!)

Included in Package:

ctrKeyGen
Launcher
slot0x25KeyX (you need to insert the key - google it!)

Changelog:

Batch completly rewritten
Red = no cia created
 

Attachments

Whoa, nice update!, just one question, I have an issue when I drop my .3ds rom on the make.bat that it just opens and closes instantly .

I used 1.6 with no problems and I have python set up correctly. Do you know what the problem could be?

Edit: it seems like it doesn't like large file paths, Put 3ds_to_cia on the root of my HDD and now flashes the green text for a nano second then closes
 
I think your "choice.exe" has no path and can't be triggered. To test it, you can open cmd and type "choice". When it fails, add a path to c:\windows\system32
 
  • Like
Reactions: Wario32
I think your "choice.exe" has no path and can't be triggered. To test it, you can open cmd and type "choice". When it fails, add a path to c:\windows\system32

Thanks^^ that was the issue, also for 64bit user make sure to set path to C:\Windows\SysWOW64
 
  • Like
Reactions: Margen67

Site & Scene News

Popular threads in this forum