Skip to content

Instantly share code, notes, and snippets.

@Yepoleb
Created February 26, 2020 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yepoleb/b4a6ee0be60167e85ba3abfc6c3403cc to your computer and use it in GitHub Desktop.
Save Yepoleb/b4a6ee0be60167e85ba3abfc6c3403cc to your computer and use it in GitHub Desktop.
# Print the footer values of a DSi NAND dump created using fwTool
import struct
import sys
f = open(sys.argv[1], "rb")
f.seek(0xF000000)
footer = f.read()
f.close()
footer_id, nand_cid, console_id = struct.unpack(">16s16s8s24x", footer)
print("Footer ID:", footer_id)
print("NAND CID:", nand_cid.hex())
print("Console ID:", console_id.hex())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment