Homebrew QUESTION: how to decrypt .romfs files on mac

BurningDesire

Well-Known Member
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
Country
United States
Downloading Project_CTR's repo and compiling doesn't work?
Edit: here's my compiled ctrtool, used OSX 10.11 to compile. Working on Makerom now, I'm getting some pointer errors from the repo's download.
Can't wait for Makerom to be done!

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

@mvit when terminal loads it spits out a bunch a text. Doesn't look like i can use it...
 

BurningDesire

Well-Known Member
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
Country
United States
Can you run the following: ctrtool > log.txt and paste log.txt?
Last login: Sat Oct 31 10:26:37 on ttys000

-bash: !/bin/sh: No such file or directory

Timothys-Mac-mini:~ Timothy$ /Users/Timothy/Desktop/ctrtool > log.txt

Usage: /Users/Timothy/Desktop/ctrtool [options...] <file>

CTRTOOL (c) neimod, 3DSGuy.



Options:

-i, --info Show file info.

This is the default action.

-x, --extract Extract data from file.

This is also the default action.

-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.

--titlekey=key Set tik title 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, tmd, lzss,

firm, cwav, exefs, romfs]

LZSS options:

--lzssout=file Specify lzss output file

CXI/CCI options:

-n, --ncch=index Specify NCCH partition index.

--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.

--logo=file Specify Logo 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:

--decompresscode Decompress .code section

(only needed when using raw EXEFS file)

ROMFS options:

--romfsdir=dir Specify RomFS directory path.

--listromfs List files in RomFS.



Timothys-Mac-mini:~ Timothy$
 

mvit

Member
Newcomer
Joined
Sep 19, 2010
Messages
10
Trophies
0
XP
129
Country
United States
Ok, so you're not inputting any commands and you're getting the usage menu, it's not a bug.
If you don't care about learning how the tool works and just want to unpack the romfs.bin, use this command "./ctrtool --intype=romfs --romfsdir=romfsdir romfs.bin"
 

BurningDesire

Well-Known Member
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
Country
United States
Ok, so you're not inputting any commands and you're getting the usage menu, it's not a bug.
If you don't care about learning how the tool works and just want to unpack the romfs.bin, use this command "./ctrtool --intype=romfs --romfsdir=romfsdir romfs.bin"
lol. okay thanks for cutting to the chase :) How hard would it be for one to make this a gui. Is C even portable to objective c
 

mvit

Member
Newcomer
Joined
Sep 19, 2010
Messages
10
Trophies
0
XP
129
Country
United States
Objective C builds on top of C, but honestly a GUI isn't worth it for this, just read the usage menu and learn how to use the terminal for now.
 

BurningDesire

Well-Known Member
Member
Joined
Jan 27, 2015
Messages
4,999
Trophies
1
Location
Behind a screen reading news
XP
4,885
Country
United States
Objective C builds on top of C, but honestly a GUI isn't worth it for this, just read the usage menu and learn how to use the terminal for now.
okay i see. I will try to make a gui today though. Ive been using Xcode only for iOS but now i have a reason to do it for mac. ( i originally used the mac part just to fuck around)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/@legolambs