cailei110 发表于 2021-3-5 14:47

3dstool v1.2.6


3dstool 1.0 by dnasdw

用法: 3dstool [选项...] [选项]...

选项:
功能:
-x, --extract 从目标文件提取
-c, --create创建目标文件
-e, --encrypt 加密目标文件
-u, --uncompress
                通过反向LZ77算法解压目标文件
-z, --compress
                通过反向LZ77算法压缩目标文件
-r, --trim    缩减cci文件
-p, --pad   填充cci文件
      --sample查看例子
-h, --help    查看帮助

通用:
-t, --type    [|||exefs|romfs]
                文件类型,可选的
-f, --file    目标文件,必需的
-v, --verbose 显示信息
cci/cxi/cfa/exefs:
提取/创建:
      --header目标文件的头文件
加密:
      --key0    --key 00000000000000000000000000000000的缩写
      --key   使用AES-CTR加密时的十六进制写法的key
      --counter 使用AES-CTR加密时的十六进制写法的counter
      --xor   使用异或加密时的异或数据文件
解压/压缩:
      --compress-out
                解压或压缩时的输出文件

cci:
提取/创建:
-0, --partition0
                位于cci文件第0分区的cxi文件
-1, --partition1
                位于cci文件第1分区的cfa文件
-2, --partition2
                位于cci文件第2分区的cfa文件
-3, --partition3
                位于cci文件第3分区的cfa文件
-4, --partition4
                位于cci文件第4分区的cfa文件
-5, --partition5
                位于cci文件第5分区的cfa文件
-6, --partition6
                位于cci文件第6分区的cfa文件
-7, --partition7
                位于cci文件第7分区的cfa文件
缩减:
      --trim-after-partition
                , 保留的最后分区号,可选的

cxi:
创建:
      --not-update-exh-hash
      --not-update-extendedheader-hash
                不更新extendedheader的校验值
      --not-update-exefs-hash
                不更新exefs头部的校验值
      --not-update-romfs-hash
                不更新romfs头部的校验值
      --not-pad 不追加填充数据
提取:
      --exh   
      --extendedheader
                cxi文件的extendedheader文件
      --logo   
      --logoregion
                cxi文件的logoregion文件
      --plain   
      --plainregion
                cxi文件的plainregion文件
      --exefs   cxi文件的exefs文件
   加密:
      --exh-xor
      --extendedheader-xor
                加密cxi文件的extendedheader部分用的异或数据文件
      --exefs-xor
                加密cxi文件的exefs部分用的异或数据文件
      --exefs-top-xor
                加密cxi文件的exefs第一段用的异或数据文件
cfa:
提取/创建:
      --romfs   cxi或cfa文件的romfs文件
   encrypt:
      --romfs-xor
                加密cxi或cfa文件的romfs部分用的异或数据文件

exefs:
提取/创建:
      --exefs-dir
                组成exefs文件的文件夹

romfs:
提取/创建:
      --romfs-dir
                组成romfs文件的文件夹
**** Hidden Message *****

cailei110 发表于 2021-3-5 14:49

例子:
# 从cci文件提取
3dstool -xvt017f cci 0.cxi 1.cfa 7.cfa input.3ds --header ncsdheader.bin

# 从cxi文件提取,过程中不用加密
3dstool -xvtf cxi 0.cxi --header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin

# 从cxi文件提取,过程中用AES-CTR加密
3dstool -xvtf cxi 0.cxi --header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin --key 00000000000000000000000000000000

# 从cxi文件提取,过程中用异或加密
3dstool -xvtf cxi 0.cxi --header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin --exh-xor 000400000XXXXX00.Main.exheader.xorpad --exefs-xor 000400000XXXXX00.Main.exefs_norm.xorpad --romfs-xor 000400000XXXXX00.Main.romfs.xorpad

# 从cxi文件提取,过程中用7.x异或加密
3dstool -xvtf cxi 0.cxi --header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin --exh-xor 000400000XXXXX00.Main.exheader.xorpad --exefs-xor 000400000XXXXX00.Main.exefs_norm.xorpad --exefs-top-xor 000400000XXXXX00.Main.exefs_7x.xorpad --romfs-xor 000400000XXXXX00.Main.romfs.xorpad

# 从cfa文件提取,过程中不用加密
3dstool -xvtf cfa 1.cfa --header ncchheader.bin --romfs romfs.bin

# 从cfa文件提取,过程中用AES-CTR加密
3dstool -xvtf cfa 1.cfa --header ncchheader.bin --romfs romfs.bin --key 00000000000000000000000000000000

# 从cfa文件提取,过程中用异或加密
3dstool -xvtf cfa 1.cfa --header ncchheader.bin --romfs romfs.bin --romfs-xor 000400000XXXXX00.Manual.romfs.xorpad

# 从exefs文件提取,过程中不用反向LZ77算法解压
3dstool -xvtf exefs exefs.bin --header exefsheader.bin --exefs-dir exefs

# 从exefs文件提取,过程中用反向LZ77算法解压
3dstool -xuvtf exefs exefs.bin --header exefsheader.bin --exefs-dir exefs

# 从romfs文件提取
3dstool -xvtf romfs romfs.bin --romfs-dir romfs

# 创建cci文件,并向尾部填充0xFF
3dstool -cvt017f cci 0.cxi 1.cfa 7.cfa output.3ds --header ncsdheader.bin

# 创建cci文件,不填充
3dstool -cvt017f cci 0.cxi 1.cfa 7.cfa output.3ds --header ncsdheader.bin --not-pad

# 创建cxi文件,过程中不用加密,但是计算校验
3dstool -cvtf cxi 0.cxi --header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin

# 创建cxi文件,过程中不用加密,不计算校验
3dstool -cvtf cxi 0.cxi --header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin --not-update-exh-hash --not-update-exefs-hash --not-update-romfs-hash

# 创建cxi文件,过程中使用AES-CTR加密,并计算校验
3dstool -cvtf cxi 0.cxi --header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin --key 00000000000000000000000000000000

# 创建cxi文件,过程中使用异或加密,并计算校验
3dstool -cvtf cxi 0.cxi --header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin --exh-xor 000400000XXXXX00.Main.exheader.xorpad --exefs-xor 000400000XXXXX00.Main.exefs_norm.xorpad --romfs-xor 000400000XXXXX00.Main.romfs.xorpad

# 创建cxi文件,过程中使用7.x异或加密,并计算校验
3dstool -cvtf cxi 0.cxi --header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin --exh-xor 000400000XXXXX00.Main.exheader.xorpad --exefs-xor 000400000XXXXX00.Main.exefs_norm.xorpad --exefs-top-xor 000400000XXXXX00.Main.exefs_7x.xorpad --romfs-xor 000400000XXXXX00.Main.romfs.xorpad

# 创建cfa文件,过程中不用加密,但是计算校验
3dstool -cvtf cfa 1.cfa --header ncchheader.bin --romfs romfs.bin

# 创建cfa文件,过程中不用加密,不计算校验
3dstool -cvtf cfa 1.cfa --header ncchheader.bin --romfs romfs.bin --not-update-romfs-hash

# 创建cfa文件,过程中使用AES-CTR加密,并计算校验
3dstool -cvtf cfa 1.cfa --header ncchheader.bin --romfs romfs.bin --key 00000000000000000000000000000000

# 创建cfa文件,过程中使用异或加密,并计算校验
3dstool -cvtf cfa 1.cfa --header ncchheader.bin --romfs romfs.bin --romfs-xor 000400000XXXXX00.Main.romfs.xorpad

# 创建exefs文件,过程中不用反向LZ77算法压缩
3dstool -cvtf exefs exefs.bin --header exefsheader.bin --exefs-dir exefs

# 创建exefs文件,过程中使用反向LZ77算法压缩
3dstool -czvtf exefs exefs.bin --header exefsheader.bin --exefs-dir exefs

# 创建romfs
3dstool -cvtf romfs romfs.bin --romfs-dir romfs

# 单独使用AES-CTR加密文件
3dstool -evf file.bin --key 00000000000000000000000000000000 --counter 00000000000000000000000000000000

# 单独使用异或加密文件
3dstool -evf file.bin --xor xor.bin

# 单独使用反向LZ77算法解压文件
3dstool -uvf code.bin --compress-out code.bin

# 单独使用反向LZ77算法压缩文件
3dstool -zvf code.bin --compress-out code.bin

# 缩减掉cci文件最后的填充数据
3dstool -vtf cci input.3ds --trim

# 缩减cci文件,只保留0~2分区
3dstool -vtf cci input.3ds --trim --trim-after-partition 2

# 向cci文件尾部填充0xFF
3dstool -vtf cci input.3ds --pad

cailei110 发表于 2021-3-5 14:51


newkyo 发表于 2021-3-7 09:18

有时候提取CXI文件会提取不全怎么回事?header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin 会提示某个文件提取错误

xuba1234 发表于 2021-3-14 02:08

6666666666666666

空空如也的玻璃 发表于 2021-3-14 19:33

感谢分享

aoi_sora 发表于 2021-4-10 16:59

66666666666666666666666

lin8682277 发表于 2021-4-17 08:23

66666666666666

koyoki 发表于 2021-4-29 18:24

感谢老哥分享3dstools

酷乐0小M 发表于 2021-5-9 17:11

感谢分享

szdtc 发表于 2021-5-12 23:57

感谢分享

park11 发表于 2021-5-21 20:03

aaaaaaaaaaaaaaa

shengmohxz 发表于 2021-5-24 10:25

感谢分享

nerojon 发表于 2021-5-30 13:26

真是好东西,感谢分享

Endais 发表于 2021-5-31 13:56

感谢分享

q1027125876 发表于 2021-6-5 20:47

aggaaganxie da lao

sunsun218 发表于 2021-6-8 07:07

好工具 人人都需要啊

fuxg3753 发表于 2021-6-10 19:20

谢谢了。

ctg123123 发表于 2021-6-11 13:21

666666666666

liyikrad 发表于 2021-6-18 13:35

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

春宵一刻值千金 发表于 2021-6-19 12:28

6+666666666666666666666666666666666666666

a7779788280 发表于 2021-6-25 12:11

啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊

ijkbov 发表于 2021-7-4 03:18

好像很不错的样子

q61968602 发表于 2021-7-4 03:40

感谢分享!!!!!

aaire 发表于 2021-7-5 14:39

666666666666666

darkwei11 发表于 2021-7-30 01:52

好耶,找很久了

carey1014 发表于 2021-8-5 00:38

感谢分享多谢多谢

HELIX_ 发表于 2021-8-13 19:53

好耶666666666

黑色鸢尾花 发表于 2021-8-16 17:46

看看。。。。。

gin712 发表于 2021-8-21 15:40

MARK~MARK:)
页: [1] 2 3 4 5 6 7
查看完整版本: 3dstool v1.2.6