From 8afa27718cbf8ae6437ddc7a59350a9a29ae4618 Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Mon, 5 Feb 2024 09:14:14 -0800 Subject: [PATCH] dumpkeys: Add seeddb.bin to output files. (#7417) --- dist/dumpkeys/DumpKeys.gm9 | 8 ++++++++ dist/dumpkeys/README.md | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dist/dumpkeys/DumpKeys.gm9 b/dist/dumpkeys/DumpKeys.gm9 index b2991a27e..f11ef9883 100644 --- a/dist/dumpkeys/DumpKeys.gm9 +++ b/dist/dumpkeys/DumpKeys.gm9 @@ -287,5 +287,13 @@ dumptxt -p $[OUT] "nfcSecret1Seed=$[NFC_SEED_1]" dumptxt -p $[OUT] "nfcSecret1HmacKey=$[NFC_HMAC_KEY_1]" dumptxt -p $[OUT] "nfcIv=$[NFC_IV]" +# Dump seeddb.bin as well + +set SEEDDB_IN "0:/gm9/out/seeddb.bin" +set SEEDDB_OUT "0:/gm9/seeddb.bin" + +sdump -w seeddb.bin +cp -w $[SEEDDB_IN] $[SEEDDB_OUT] + @Exit diff --git a/dist/dumpkeys/README.md b/dist/dumpkeys/README.md index 4416b178b..cbf49dd04 100644 --- a/dist/dumpkeys/README.md +++ b/dist/dumpkeys/README.md @@ -6,5 +6,5 @@ Usage: 1. Copy "DumpKeys.gm9" into the "gm9/scripts/" directory on your SD card. 2. Launch GodMode9, press the HOME button, select Scripts, and select "DumpKeys" from the list of scripts that appears. 3. Wait for the script to complete and return you to the GodMode9 main menu. -4. Power off your system and copy the "gm9/aes_keys.txt" file off of your SD card into "(Citra directory)/sysdata/". +4. Power off your system and copy the "gm9/aes_keys.txt" and "gm9/seeddb.bin" files off of your SD card into "(Citra directory)/sysdata/".