[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112432":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":15,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":27,"discoverSource":28},112432,"beetool","alula\u002Fbeetool","alula","hactool with Nintendo Switch 2 (Ounce) support","",null,"C",51,5,2,1,0,42.43,"ISC License",false,"master",true,[],"2026-10-24 21:52:40","2026-11-13 19:22:47","# hactool\n\n![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-ISC-blue.svg)\n\nhactool is a tool to view information about, decrypt, and extract common file formats for the Nintendo Switch, especially Nintendo Content Archives.\n\nIt is heavily inspired by [ctrtool](https:\u002F\u002Fgithub.com\u002Fprofi200\u002FProject_CTR\u002Ftree\u002Fmaster\u002Fctrtool).\n\n## Usage\n\n```\nUsage: hactool [options...] \u003Cfile>\nOptions:\n-i, --info        Show file info.\n                      This is the default action.\n-x, --extract     Extract data from file.\n                      This is also the default action.\n  -r, --raw          Keep raw data, don't unpack.\n  -y, --verify       Verify hashes and signatures.\n  -d, --dev          Decrypt with development keys instead of retail.\n  -k, --keyset       Load keys from an external file.\n  -t, --intype=type  Specify input file type [nca, xci, pfs0, romfs, hfs0, npdm, pk11, pk21, ini1, kip1, nax0, save, keygen]\n  --titlekey=key     Set title key for Rights ID crypto titles.\n  --contentkey=key   Set raw key for NCA body decryption.\n  --disablekeywarns  Disables warning output when loading external keys.\nNCA options:\n  --plaintext=file   Specify file path for saving a decrypted copy of the NCA.\n  --header=file      Specify Header file path.\n  --section0=file    Specify Section 0 file path.\n  --section1=file    Specify Section 1 file path.\n  --section2=file    Specify Section 2 file path.\n  --section3=file    Specify Section 3 file path.\n  --section0dir=dir  Specify Section 0 directory path.\n  --section1dir=dir  Specify Section 1 directory path.\n  --section2dir=dir  Specify Section 2 directory path.\n  --section3dir=dir  Specify Section 3 directory path.\n  --exefs=file       Specify ExeFS file path. Overrides appropriate section file path.\n  --exefsdir=dir     Specify ExeFS directory path. Overrides appropriate section directory path.\n  --romfs=file       Specify RomFS file path. Overrides appropriate section file path.\n  --romfsdir=dir     Specify RomFS directory path. Overrides appropriate section directory path.\n  --listromfs        List files in RomFS.\n  --baseromfs        Set Base RomFS to use with update partitions.\n  --basenca          Set Base NCA to use with update partitions.\n  --basefake         Use a fake Base RomFS with update partitions (all reads will return 0xCC).\n  --onlyupdated      Ignore non-updated files in update partitions.\nNPDM options:\n  --json=file        Specify file path for saving JSON representation of program permissions to.\nKIP1 options:\n  --json=file        Specify file path for saving JSON representation of program permissions to.\n  --uncompressed=f   Specify file path for saving uncompressed KIP1.\nNSO0 options:\n  --uncompressed=f   Specify file path for saving uncompressed NSO0.\nPFS0 options:\n  --pfs0dir=dir      Specify PFS0 directory path.\n  --outdir=dir       Specify PFS0 directory path. Overrides previous path, if present.\n  --exefsdir=dir     Specify PFS0 directory path. Overrides previous paths, if present for ExeFS PFS0.\nRomFS options:\n  --romfsdir=dir     Specify RomFS directory path.\n  --outdir=dir       Specify RomFS directory path. Overrides previous path, if present.\n  --listromfs        List files in RomFS.\nHFS0 options:\n  --hfs0dir=dir      Specify HFS0 directory path.\n  --outdir=dir       Specify HFS0 directory path. Overrides previous path, if present.\n  --exefsdir=dir     Specify HFS0 directory path. Overrides previous paths, if present.\nXCI options:\n  --rootdir=dir      Specify XCI root HFS0 directory path.\n  --updatedir=dir    Specify XCI update HFS0 directory path.\n  --normaldir=dir    Specify XCI normal HFS0 directory path.\n  --securedir=dir    Specify XCI secure HFS0 directory path.\n  --logodir=dir      Specify XCI logo HFS0 directory path.\n  --outdir=dir       Specify XCI directory path. Overrides previous paths, if present.\nPackage1 options:\n  --package1dir=dir  Specify Package1 directory path.\n  --outdir=dir       Specify Package1 directory path. Overrides previous path, if present.\nPackage2 options:\n  --package2dir=dir  Specify Package2 directory path.\n  --outdir=dir       Specify Package2 directory path. Overrides previous path, if present.\n  --extractini1      Enable INI1 extraction to default directory (redundant with --ini1dir set).\n  --ini1dir=dir      Specify INI1 directory path. Overrides default path, if present.\nINI1 options:\n  --ini1dir=dir      Specify INI1 directory path.\n  --outdir=dir       Specify INI1 directory path. Overrides previous path, if present.\n  --saveini1json     Enable generation of JSON descriptors for all INI1 members.\nNAX0 options:\n  --sdseed=seed      Set console unique seed for SD card NAX0 encryption.\n  --sdpath=path      Set relative path for NAX0 key derivation (ex: \u002Fregistered\u002F000000FF\u002Fcafebabecafebabecafebabecafebabe.nca).\nSave data options:\n  --outdir=dir       Specify save directory path.\n  --listfiles        List files in save file.\nKey Derivation options:\n  --sbk=key          Set console unique Secure Boot Key for key derivation.\n  --tseckey=key      Set console unique TSEC Key for key derivation.```\n```\n\n## Building\n\nCopy `config.mk.template` to `config.mk`, make changes as required, and then run `make`.\nIf your `make` is not GNU make (e.g. on BSD variants), you need to call `gmake` instead.\n\nIf on Windows, I recommend using MinGW.\n\n## External Keys\n\nExternal keys can be provided by the -k\u002F--keyset argument to the a keyset filename.\nKeyset files are text files containing one key per line, in the form \"key_name = HEXADECIMALKEY\".\nCase shouldn't matter, nor should whitespace.\n\nIn addition, if -k\u002F--keyset is not set, hactool will check for the presence of a keyset file\nin $HOME\u002F.switch\u002Fprod.keys (or $HOME\u002F.switch\u002Fdev.keys if -d\u002F--dev is set). If present, this file\nwill automatically be loaded.\n\n## Licensing\n\nThis software is licensed under the terms of the ISC License.  \nYou can find a copy of the license in the LICENSE file.\n","alula\u002Fbeetool 是一个支持 Nintendo Switch 2（代号 Ounce）的 Switch 文件分析与解密工具，基于 hactool 开发。它可解析、解密和提取 Switch 常见格式（如 NCA、XCI、PFS0、ROMFS、NPDM 等），支持零售\u002F开发密钥切换、标题密钥注入、分区提取及完整性校验等功能；采用 C 语言实现，轻量高效，兼容原 hactool 的命令行接口。适用于游戏逆向分析、固件研究、自制软件开发及 Switch 平台内容合规性验证等技术场景。","2026-11-24 04:43:27","CREATED_QUERY"]