RELEASE Firmware Version Inspector - get FW version from NAND dump

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by shchmue, Aug 18, 2018.

  1. shchmue
    OP

    shchmue GBAtemp Advanced Fan

    Member
    6
    Dec 23, 2013
    United States
    Have more than one NAND dump? Forgot to rename or label them?
    Good news! Now you can quickly find out what firmware version a given backup contains.

    Download:
    Firmware Version Inspector - by shchmue on Github

    Usage:
    Install Python 3 and pycryptodome. In command prompt, type:
    Code:
    pip install pycryptodome
    If this is an encrypted backup like Hekate makes (ie. you haven't dumped a decrypted System partition via HacDiskMount), you need to provide your console-specific BIS key 2. Dump this using biskeydump (https://gbatemp.net/threads/biskeyd...c-decryption-real-time-mounting-tools.502434/)

    Then run from command line:
    Code:
    python FVI.py [-b=/path/to/biskeyfile] <dumpfile>
    
     biskeyfile must contain the following lines:
       BIS Key 2 (crypt): <32-digit hex key>
       BIS Key 2 (tweak): <32-digit hex key>
      omit -b if System partition already decrypted (eg. dumped with HacDiskMount)
    
     dumpfile must be NAND dump (eg. Hekate rawnand.bin dump) or System partition
    Run examples:
    FVI2.

    FVI1.

    I tested this on Windows 10 with Anaconda Python 3.6.5 and Ubuntu 16.04 LTS with Python 3.5.2. I hope you find it useful :)
     
    Last edited by shchmue, Nov 21, 2018
  2. Canna

    Canna Bad Ass Poisonous Mushroom

    Member
    7
    GBAtemp Patron
    Canna is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 14, 2018
    United Kingdom
    This is a great handy little tool and hopefully not to complicated to those who have no idea how to use py
    will be using this thanks
     
    Mat37 and NoNAND like this.
  3. shchmue
    OP

    shchmue GBAtemp Advanced Fan

    Member
    6
    Dec 23, 2013
    United States
    yeah I'll add a troubleshooting section if any common command line errors manifest like they did all over the old ChoiDujour thread
     
    Canna likes this.
  4. Canna

    Canna Bad Ass Poisonous Mushroom

    Member
    7
    GBAtemp Patron
    Canna is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 14, 2018
    United Kingdom
    Chick i had to use choidujour today to help another member omFG it was a remote connection anyway and his windows is set to french so you can imagine the output of errors i got fml
     
    Last edited by Canna, Aug 30, 2018
  5. bundat

    bundat ¿

    Member
    4
    Jul 25, 2018
    Antarctica
    Tested on Mac OSX 10.11.1, works great!

    fvi1. fvi2. fvi3. fvi4.
     
  6. shchmue
    OP

    shchmue GBAtemp Advanced Fan

    Member
    6
    Dec 23, 2013
    United States
    thanks so much for testing this! I'm glad to hear it works on Mac, the Ubuntu VM came in handy or else it'd probably be throwing errors. it certainly did when I first tried it

    I'm curious what the story is on the one with 400 NCAs. did you use ChoiDujour more than once or something?
     
    Last edited by shchmue, Aug 18, 2018
    bundat likes this.
  7. bundat

    bundat ¿

    Member
    4
    Jul 25, 2018
    Antarctica
    No, never used ChoiDujour. This 5.1 update was done in OFW on an unhacked 4.1 Switch (well... unhacked except for running Hekate to get the 4.1 backup). As soon as the 5.1 update was completed, I stuck in an RCM jig on reboot to prevent burning fuses, and made the 5.1 backup.

    So this is just basically an unhacked 5.1 NAND dump.
     
    shchmue likes this.
  8. shchmue
    OP

    shchmue GBAtemp Advanced Fan

    Member
    6
    Dec 23, 2013
    United States
    oh! I wonder whether doing that kept it from deleting the old files or something. or maybe CD deletes them but a typical update doesn't at all.
     
  9. shchmue
    OP

    shchmue GBAtemp Advanced Fan

    Member
    6
    Dec 23, 2013
    United States
    Upon request, I added a feature that determines most recent boot time as of the time the backup was made.

    FVI3.
     
    Last edited by shchmue, Aug 21, 2018
    hippy dave likes this.
  10. mario6714

    mario6714 Member

    Newcomer
    1
    Jan 23, 2013
    Mexico
    C:\1>python FVI.py -b=/c/1/biskeyfile.txt /c/1/system
    File "FVI.py", line 7
    <!DOCTYPE html>
    ^
    SyntaxError: invalid syntax

    — Posts automatically merged - Please don't double post! —

    Windows 10
     
  11. shchmue
    OP

    shchmue GBAtemp Advanced Fan

    Member
    6
    Dec 23, 2013
    United States
    you got the whole HTML page from GitHub. try saving from the raw link https://raw.githubusercontent.com/shchmue/FVI/master/FVI.py

    you also might need to use Windows directory syntax, but I'm not totally sure, ie c:\1\system
     
  12. SexySpai

    SexySpai xdddddddddddddddddddddddddddddddddd

    Member
    6
    Jun 16, 2018
    United States
    your mom lol
    or just go to settings under system.
     
  13. Taorn

    Taorn GBAtemp Regular

    Member
    3
    May 27, 2017
    United States
    How exactly are you going to do this with a nand backup file?
     
  14. SexySpai

    SexySpai xdddddddddddddddddddddddddddddddddd

    Member
    6
    Jun 16, 2018
    United States
    your mom lol
    No. Go to settings on your switch.
     
  15. Ashura66

    Ashura66 GBAtemp Advanced Maniac

    Member
    6
    Feb 1, 2016
    Portugal
    Under my bed

    That's NOT the point of this. The point of this is to see the FW version of your NAND BACKUP, not the NAND you're currently using
     
    Draxzelex likes this.
  16. SexySpai

    SexySpai xdddddddddddddddddddddddddddddddddd

    Member
    6
    Jun 16, 2018
    United States
    your mom lol
    oh ok.
     
  17. Taorn

    Taorn GBAtemp Regular

    Member
    3
    May 27, 2017
    United States
    Read the description.

     
    Draxzelex likes this.
  18. xlim3y

    xlim3y Member

    Newcomer
    1
    Aug 8, 2014
    United States
    finally got this to run (my syntax understanding is awful), but now I get the error /contents/ not found.

    This is a dump from I believe 5.0, but I wanted to check before I restore.

    Any thoughts?

    Thanks in advance for the help.
     
  19. comput3rus3r

    comput3rus3r GBAtemp Psycho!

    Member
    12
    Aug 20, 2016
    United States
    have nand backups for multiple switches? how do I know which nand backup belongs to what switch?
     
  20. Draxzelex

    Draxzelex GBAtemp Guru

    Member
    17
    Aug 6, 2017
    United States
    New York City
    I suppose you can try mounting them via hackdiskmount then seeing which biskeys decrypt them as long as you know which biskeys belong to which Switch.
     
Loading...