ROM Hack [Release] 3DS_CTR_Decryptor-VOiD

cracker

Nyah!
Member
Joined
Aug 24, 2005
Messages
3,619
Trophies
1
XP
2,213
Country
United States
well just a head up anyone having major issues getting a good xor dump, try another SD...i presume it must be down to the speed, but i have been trying to get a full dump of mario kart all day, and just tried with the U1 card i have in the gateway and the dumping is so much faster and got a full dump in one go

Do you think this is due to the FS ASM code used?
 
D

Deleted-346555

Guest
also there's still a lot of things to do for getting this as *releasable* state, just fyi. Tho it's decent this time.
 

Relys

^(Software | Hardware) Exploit? Development.$
OP
Member
Joined
Jan 5, 2007
Messages
878
Trophies
1
XP
1,239
Country
United States
I just added xerpi's padxorer to the utilities!

If there aren't any issues I will pack all of this up for an official 1.1 release and include a better tutorial! (I'll give it about two days. I'm on vacation right now anyways) As always, enjoy!
 

Flurry

Well-Known Member
Newcomer
Joined
Sep 1, 2013
Messages
48
Trophies
0
Age
30
XP
184
Country
United States
Is there a way to view CTPK files yet?

This is as close as I got.
I1YwJ0L.png


Being able to decrypt games now is amazing! I'm sooo excited to find unused content and junk~
Not to mention one step closer to game translations :)
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France

SilverfalconLP

Well-Known Member
Member
Joined
Dec 23, 2013
Messages
111
Trophies
0
Age
40
XP
913
Country
newer than 2 days ago?
the last commit to 3DSHax fork is from 2013.

he posted a link in this thread.



i have one buggy but more options

Code:
  -i, --info          Show file info.
                            This is the default action.
  -x, --extract        Extract data from file.
                            This is also the default action.
  -c, --create        Create a new file.
  -p, --plain          Extract data without decrypting.
  -r, --raw            Keep raw data, don't unpack.
  -k, --keyset=file    Specify keyset file.
  -v, --verbose        Give verbose output.
  -y, --verify        Verify hashes and signatures.
  --unitsize=size      Set media unit size (default 0x200).
  --commonkey=key      Set common key.
  --ncchkey=key        Set ncch key.
  --ncchsyskey=key    Set ncch fixed system key.
  --showkeys          Show the keys being used.
  -t, --intype=type        Specify input file type [ncsd, ncch, exheader, cia,
md,
                                                lzss, firm, cwav, romfs]
LZSS options:
  --lzssout=file          Specify lzss output file
CXI/CCI options:
  -n, --ncch=offs      Specify offset for NCCH header.
  --exefs=file        Specify ExeFS file path.
  --exefsdir=dir      Specify ExeFS directory path.
  --romfs=file        Specify RomFS file path.
  --exheader=file      Specify Extended Header file path.
CIA options:
  --certs=file        Specify Certificate chain file path.
  --tik=file          Specify Ticket file path.
  --tmd=file          Specify TMD file path.
  --contents=file      Specify Contents file path.
  --meta=file          Specify Meta file path.
FIRM options:
  --firmdir=dir        Specify Firm directory path.
CWAV options:
  --wav=file          Specify wav output file.
  --wavloops=count    Specify wav loop count, default 0.
EXEFS options:
  --compresscode      Compress .code section
  --sectionNfile=file  Specify input file for section N (0 <= N < 8)
  --sectionNname=file  Specify input file for section N (0 <= N < 8)
ROMFS options:
  --romfsdir=dir      Specify RomFS directory path.
  --listromfs          List files in RomFS.
 

chrrox

Active Member
Newcomer
Joined
Sep 24, 2009
Messages
42
Trophies
0
XP
179
Country
United States
Quick tutorial

Step 1.
Download these tools
https://www.sendspace.com/file/icnkiz
https://www.sendspace.com/file/4azlvg

Step 2.
on your pc drag the 3ds rom you want to decrypt onto ctrKeyGen.exe
this will generate
ncchinfo.bin

Step 3.
Copy Launcher.dat and ncchinfo.bin onto the 3ds internal sd card. (not the gateway micro sd card)

Step 4.
Launch the gateway exploit as you normally would by going into ds profile settings.

Step 5.
Wait while it generates a file on the 3ds
CTR-P-AKHP0.romfs.xorpad

step 6.
drag your 3ds rom onto getromfs.exe and it will create EncryptedRomFS.bin
copy CTR-P-AKHP0.romfs.xorpad to this directory also

Step 7.
hold shift in the folder containing these tools and the 3ds rom and right click and choose open command prompt here.
type in the command prompt
xor.exe CTR-P-AKHP0.romfs.xorpad EncryptedRomFS.bin
and it will generate
DecryptedRomFS.bin

Step 8.
Now run from the same command prompt
ctrtool.exe -x DecryptedRomFS.bin --romfsdir=My_Extraction_Folder

Step 9.
Profit ???
example folder structure.
http://pastebin.com/raw.php?i=XdghCm54
 
  • Like
Reactions: Abcdfv

NCDyson

Hello Boys...
Member
Joined
Nov 9, 2009
Messages
278
Trophies
1
XP
319
Country
United States
Is there a way to view CTPK files yet?

This is as close as I got.
I1YwJ0L.png


Being able to decrypt games now is amazing! I'm sooo excited to find unused content and junk~
Not to mention one step closer to game translations :)

I'm getting stuff like that with ALBW image files. Strange image formats. probably weird tiling.
 

SilverfalconLP

Well-Known Member
Member
Joined
Dec 23, 2013
Messages
111
Trophies
0
Age
40
XP
913
Country
Im make one bat for extract and unpack simplication ,only need take rom on the .bat and take option(exefs.bin unpack is buggy for ctrtool vercion i have but can extract whit hexedit)

the batch

http://www.mediafire.com/download/ktwf60p4f943vr1/CTRTool-Batch-by-Tomvii.rar

code of batch

Code:
[USER=325063]Echo[/USER] off
setlocal enabledelayedexpansion
color 0A
CLS
echo ################################################################################
echo ##============================================================================##
echo ##                          CTRTool-Gui v0.1b                                ##
echo ##                              by Tomvii                                    ##
echo ##============================================================================##
echo ################################################################################
echo.
timeout 3
if %~x1==.3DS (goto MENU)
if %~x1==.3DZ (goto MENU)
if %~x1==.3ds (goto MENU)
if %~x1==.3dz (goto MENU)
if %~x1==.cci (goto MENU)
if %~x1==.csu (goto MENU)
else (goto quit)
:MENU
CLS
echo ###############################################################################
ECHO ==========================CTRTool-Gui Home Menu =============================##
ECHO -----------------------------------------------------------------------------##
ECHO -----------------------------------------------------------------------------##
ECHO 1. Extract Exheader.bin of file                                              ##
ECHO -----------------------------------------------------------------------------##
ECHO 2. Extract ExeFS.bin of file                                                ##
ECHO -----------------------------------------------------------------------------##
ECHO 3. Extract RomFS.bin of file                                                ##
ECHO -----------------------------------------------------------------------------##
ECHO -----------------------------------------------------------------------------##
ECHO 4. Unpack Filesystem of RomFS.bin                                            ##
ECHO -----------------------------------------------------------------------------##
ECHO 5. Unpack Filesystem of ExeFS.bin                                            ##
ECHO -----------------------------------------------------------------------------##
ECHO -----------------------------------------------------------------------------##
ECHO 6. Clean older files (romfs.bin,exefs.bin,romfsdir,exefsdir etc)            ##
ECHO -----------------------------------------------------------------------------##
ECHO -----------------------------------------------------------------------------##
ECHO ========Pulsa 'Q' para Salir=================================================##
ECHO .
 
SET OPTION=
SET /P OPTION=Selecciona una de opcion:
 
IF /I '%OPTION%'=='1' GOTO OPTION1
IF /I '%OPTION%'=='2' GOTO OPTION2
IF /I '%OPTION%'=='3' GOTO OPTION3
IF /I '%OPTION%'=='4' GOTO OPTION4
IF /I '%OPTION%'=='5' GOTO OPTION5
IF /I '%OPTION%'=='6' GOTO OPTION6
IF /I '%OPTION%'=='Q' GOTO Quit
 
CLS
ECHO ################################################
ECHO ================OPCION INVALIDA===============##
ECHO ----------------------------------------------##
ECHO Selecciona un numero de las opcines          ##
echo del Menu [1-6] o pulsa 'Q' para salir.        ##
ECHO ----------------------------------------------##
echo ==============================================##
ECHO ################################################
 
PAUSE > NUL
GOTO menu
 
:OPTION1
SetLocal EnableDelayedExpansion
bin\ctrtool.exe -p --exheader=exheaderenc.bin %1
cls
ECHO Copy xorpad of exheader.bin whit
ECHO  renamed to exheader.xorpad
ECHO        and continue
pause
SetLocal EnableDelayedExpansion
bin\padxorer.exe exheader.xorpad exheaderenc.bin
SetLocal EnableDelayedExpansion
rename exheader.xorpad.out exheader.bin
SetLocal EnableDelayedExpansion
erase exheader.xorpad.out
SetLocal EnableDelayedExpansion
erase exheaderenc.bin
GOTO menu
 
:OPTION2
 
SetLocal EnableDelayedExpansion
bin\ctrtool.exe -p --exefs=exefsenc.bin %1
cls
ECHO Copy xorpad of exefs.bin whit
ECHO  renamed to exefs.xorpad
ECHO        and continue
pause
SetLocal EnableDelayedExpansion
bin\padxorer.exe exefs.xorpad exefsenc.bin
SetLocal EnableDelayedExpansion
rename exefs.xorpad.out exefs.bin
SetLocal EnableDelayedExpansion
erase exefs.xorpad.out
SetLocal EnableDelayedExpansion
erase exefsenc.bin
GOTO menu
 
:OPTION3
 
SetLocal EnableDelayedExpansion
bin\ctrtool.exe -p --romfs=romfsenc.bin %1
cls
ECHO Copy xorpad of romfs.bin whit
ECHO  renamed to romfs.xorpad
ECHO        and continue
pause
SetLocal EnableDelayedExpansion
bin\padxorer.exe romfs.xorpad romfsenc.bin
SetLocal EnableDelayedExpansion
rename romfs.xorpad.out romfs.bin
SetLocal EnableDelayedExpansion
erase romfs.xorpad.out
SetLocal EnableDelayedExpansion
erase romfsenc.bin
GOTO menu
 
:OPTION4
 
bin\ctrtool -t romfs --romfsdir romfsdir romfs.bin
 
GOTO menu
 
:OPTION5
 
bin\ctrtool -t exefs --exefsdir exefsdir exefs.bin
 
GOTO menu
 
:OPTION6
 
erase RomFS.bin
erase exefs.bin
SetLocal EnableDelayedExpansion
erase exheader.bin
rmdir romfsdir
SetLocal EnableDelayedExpansion
rmdir exefsdir
GOTO menu
 
:Quit
CLS
ECHO ################################################
ECHO ==================GRACIAS=====================##
ECHO -----------------By-Tomvii--------------------##
ECHO ========Pulsa una tecla para continuar========##
ECHO ################################################
PAUSE>NUL
EXIT


PD:Sorry for my word om spanish
 
  • Like
Reactions: Abcdfv

Huntereb

Well-Known Member
Member
Joined
Sep 1, 2013
Messages
3,234
Trophies
0
Website
lewd.pics
XP
2,446
Country
United States
Probably been asked countless times, but any ideas as to when we'll see the ability to re-package roms?

I'm way too anxious for this... This is gonna be the reason I don't sell my 3DS.
 

dubbz82

Well-Known Member
Member
Joined
Feb 2, 2014
Messages
1,572
Trophies
0
Age
41
XP
1,215
Country
United States
Probably been asked countless times, but any ideas as to when we'll see the ability to re-package roms?

I'm way too anxious for this... This is gonna be the reason I don't sell my 3DS.



Sorry, don't have my crystal ball handy, but i suspect probably not too much longer...that being said, there's still no good way to actually LOAD a decrypted Rom either..
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: @Xdqwerty, No idea, Wish.com is dead.