Homebrew QUESTION: how to decrypt .romfs files on mac

BurningDesire

Well-Known Member
Member
Joined
Jan 27, 2015
Messages
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
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
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
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
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
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
5,000
Trophies
1
Location
Behind a screen reading news
XP
4,803
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)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Will you give me mouth to mouth oxygen if my throat closes?
  • K3N1 @ K3N1:
    Nah the air can do that
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
    A @ abraarukuk: hi guys