279
edits
No edit summary |
|||
Line 11: | Line 11: | ||
=== On Linux === | === On Linux === | ||
1. '''Extract''' the AES IV from keys.bin: <code>dd if=keys.bin of=aes-iv bs=1 skip=360 count=16</code> | 1. '''Extract''' the AES IV from keys.bin: <code>dd if=keys.bin of=aes-iv bs=1 skip=360 count=16</code> | ||
2. '''Extract''' the per-console NAND key from keys.bin. | 2. '''Extract''' the per-console NAND key from keys.bin. | ||
3. '''Decrypt''' the NAND image: <code>openssl enc -d -aes-128-cbc -in nand.bin -out nand-decrypted.bin -K $(hexdump -v -e '/1 "%02X"' < nand-key) -iv $(hexdump -v -e '/1 "%02X"' < aes-iv) -nopad</code> | 3. '''Decrypt''' the NAND image: <code>openssl enc -d -aes-128-cbc -in nand.bin -out nand-decrypted.bin -K $(hexdump -v -e '/1 "%02X"' < nand-key) -iv $(hexdump -v -e '/1 "%02X"' < aes-iv) -nopad</code> | ||
4. '''Unpack''' the decrypted NAND image using zestig. | 4. '''Unpack''' the decrypted NAND image using zestig. | ||
edits