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 ***** 例子:
# 从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
有时候提取CXI文件会提取不全怎么回事?header ncchheader.bin --exh exh.bin --logo logo.bcma.lz --plain plain.bin --exefs exefs.bin --romfs romfs.bin 会提示某个文件提取错误 6666666666666666
感谢分享
66666666666666666666666
66666666666666 感谢老哥分享3dstools
感谢分享
感谢分享 aaaaaaaaaaaaaaa
感谢分享
真是好东西,感谢分享
感谢分享
aggaaganxie da lao
好工具 人人都需要啊
谢谢了。
666666666666
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+666666666666666666666666666666666666666
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
好像很不错的样子
感谢分享!!!!!
666666666666666
好耶,找很久了 感谢分享多谢多谢 好耶666666666
看看。。。。。
MARK~MARK:)