Releases: emoose/iQueTool
iQueTool 0.4a
Since 0.3a:
- added support for adding & replacing files inside a NAND image (using -addfiles/-addlist parameters)
- added support for removing files from NAND (using -d / -deletefiles parameters)
- updated structures to better match proper names etc (taken from iQueBrew & other sources)
- removed fakesign stuff as iQue isn't vulnerable to it
Add file example:
iquetool nand -a "D:\ticket.sys" nand.bin
Add file list example:
iquetool nand -al "D:\list-of-files-seperated-with-new-lines.txt" nand.bin
Haven't tested the file injection code on a proper iQue yet (I mean, I still need to get my iQue upgraded for USB support :P), but iQueTool seems to extract any injected files fine, so hopefully the iQue itself should work with them too.
Make sure the file you're adding has the name you want it to use inside the NAND, any files with names larger then 8.3 will be truncated (wewladroflmao.omfg -> wewladro.omf).
If the file already exists in the NAND it'll be replaced by removing the entry + de-allocating any blocks it uses, files can also be removed individually using -deletefiles (eg. "-d ticket.sys,user.sys")
iQueTool 0.3a
- adds -fixchecksums parameter to repair BBFS checksums
- now allows decrypting signatures, which lets us see the expected hash for any signed structs
- a big alert will be shown if any structs expected hash starts with 00 - might let us try fakesigning again! (last fakesign method replaced the signature with all 00, meaning it had bad PKCS1 padding - might be why it failed. But if we can find a decrypted sig that starts with 00 it'll be completely valid & usable for us to fakesign with)
the included x86 folder is required to allow decrypting signatures, if not found the app will still work, but expected hashes won't be shown.
iQueTool 0.3
- adds sparefix mode: repairs an existing spare.bin by reducing 2MiB page-spare & 1MiB overdumped spares to 64KiB block-spare, optionally a nand.bin can be given which will correct the ECC/SA data bytes
- nand mode: add -generatespare parameter which generates a new 64KiB block-spare from an input nand.bin from scratch. (the -gp / -fullspare parameter can be given to generate a 2MiB page-spare instead)
- nand mode: add -updatekernel parameter, which takes an input SKSA and updates the input NAND with it (also uses the BBFS allocation table to detect and avoid writing to any bad-blocks), can be combined with the -generatespare parameter to generate the required spare SA data.
- nand mode: -output parameter can be used with -updatekernel to write the updated NAND to the given output path instead of writing to the input file.
Some useful batch files are also provided, to use them put a nand.bin in the same folder as the batch file (make sure iQueTool.exe / NDesk.Options.dll is next to the batch file too!)
The "sksa_upgrader" folder allows you to batch-generate upgraded NANDs for every SKSA in the sksa_upgrader folder. Read the usage.txt file to set it up.
TODO: update the depot.sys SecureContentId field when using -updatekernel
Unfortunately there's no way to know the proper SecureContentId without looking at the filename (which could be easily changed/incorrect)... It's also not known if updating depot.sys is actually required (the file is entirely little-endian, but iQue uses a big-endian CPU), so it may only be used for letting PC/depot client software know the SKSA version.
iQueTool 0.1
iQueTool 0.1
iQueTool 0.1a
- allow reading inodes from older FS blocks