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
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
    +1
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
    +1
  • Veho @ Veho:
    It's a tradeoff.
    +1
  • The Real Jdbye @ The Real Jdbye:
    no i mean, before a hit is after the previous hit
    +1
  • The Real Jdbye @ The Real Jdbye:
    if you keep them well enough fed, it's the same thing
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    By the power of Florida Man, I have the power!!! *Lifts up meth pipe* Meth Man!!! lol
  • BakerMan @ BakerMan:
    Guys, I just learned my little brother is in the hospital because he had a seizure last night.
  • cearp @ cearp:
    Sorry to hear that BakerMan
    +2
  • BakerMan @ BakerMan:
    Just found out he's doing alright, doing a lot of complaining too, rightfully so. Who wouldn't complain after having a seizure and being hospitalized?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Glad he is OK and complaining is cool :)
    +1
  • K3Nv2 @ K3Nv2:
    Yeah been there had that no fun
    +1
  • K3Nv2 @ K3Nv2:
    They'll give him sleep studies eegs and possibly one week hospital stay
    +1
  • BakerMan @ BakerMan:
    I hope it's not a week.
  • K3Nv2 @ K3Nv2:
    It's standard so doctors can get a idea about what's going on
  • BakerMan @ BakerMan:
    understood
  • BakerMan @ BakerMan:
    well, i'm glad he seems to be doing fine, and ig i'm going to start spewing goofy shit again
  • BakerMan @ BakerMan:
    Update: Turns out he's epileptic
  • K3Nv2 @ K3Nv2:
    Get a 2nd opinion run mris etc they told me that also
  • Psionic Roshambo @ Psionic Roshambo:
    Also a food allergy study would be a good idea
  • K3Nv2 @ K3Nv2:
    Turns out you can't sprinkle methamphetamine on McDonald's French fries
  • ZeroT21 @ ZeroT21:
    they wouldn't be called french fries at that point
  • ZeroT21 @ ZeroT21:
    Probably just meth fries
  • K3Nv2 @ K3Nv2:
    White fries hold up
    K3Nv2 @ K3Nv2: White fries hold up