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
  • Psionic Roshambo @ Psionic Roshambo:
    By your powers combined, hmmm where is Epstein?
  • K3Nv2 @ K3Nv2:
    Just another shit fps clone
  • K3Nv2 @ K3Nv2:
    Thought it was some warzone dlc bs
  • Psionic Roshambo @ Psionic Roshambo:
    Looks like an enhanced Far cry 1
  • K3Nv2 @ K3Nv2:
    That's a far cry from it
  • BigOnYa @ BigOnYa:
    Is it a free to play bs, pay to get any good weapon/gear
  • K3Nv2 @ K3Nv2:
    Not free to play but $35
  • K3Nv2 @ K3Nv2:
    Inb4 kiiwii gives it a 0/10
  • BigOnYa @ BigOnYa:
    6/10 rating on steam
  • Psionic Roshambo @ Psionic Roshambo:
    I would like a Predator game "Kill Team" it takes place in the Jungle of the first movie, your team is sent to hunt the predator, using current tech drones and a trained team. Set traps use strategy to hunt and trap or kill the predator.
  • BigOnYa @ BigOnYa:
    Ill stick with my Battlefield. Yea a predator hunting game like that would be cool. Esp if you can be Arnold and say "Get to da choppa"
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe Arnold could do a cameo voice acting, he is the one briefing you on the mission
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly surprised they didn't make a tie in game for Predators that movie was awesome
  • Psionic Roshambo @ Psionic Roshambo:
    I was kinda sad the Yakuza guy died sword fighting a predator lol
  • Psionic Roshambo @ Psionic Roshambo:
    The Russian guy went out like a boss
  • Psionic Roshambo @ Psionic Roshambo:
    Double claymores to the face definitely kill a predator lol
  • BigOnYa @ BigOnYa:
    I went today and looked at a motorcycle someone was selling. I get there and the battery on it was dead, so the guy grabbed a battery charger and hooked it up. He plugged it into the wall, and the motorcycle sparked and started smoking. Come to find out the bike uses a 6 volt battery and the guy had the charger set to 12v. I said sorry to the dude and walked away. I felt bad for him tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds like it would be an exciting ride....
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure I would want something on fire between my legs
  • BigOnYa @ BigOnYa:
    He ruined it basically. Sad cause it was a decent old bike. It would take more money to rewire the bike than it was worth tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah I'm sure at minimum the starter was fried
  • Psionic Roshambo @ Psionic Roshambo:
    Alternator and battery
  • BigOnYa @ BigOnYa:
    Prob alot of fried parts. It was still smoking when I left.
    Psionic Roshambo @ Psionic Roshambo: Yikes