1. shchmue

    OP shchmue Developer
    Developer

    Joined:
    Dec 23, 2013
    Messages:
    748
    Country:
    United States
    Python and command line can be difficult for unfamiliar users, so if possible, I would recommend the wonderful NxNandManager tool, which among other things can list the firmware version of a NAND backup.


    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.png

    FVI1.png

    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, Apr 2, 2020 - Reason: nxnandmanager plug
    k3lv1n, f0li0, lordelan and 33 others like this.
  2. Canna

    Canna Bad Ass Poisonous Mushroom
    Member

    Joined:
    Jul 14, 2018
    Messages:
    1,345
    Country:
    United States
    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 Developer
    Developer

    Joined:
    Dec 23, 2013
    Messages:
    748
    Country:
    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

    Joined:
    Jul 14, 2018
    Messages:
    1,345
    Country:
    United States
    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

    Joined:
    Jul 25, 2018
    Messages:
    438
    Country:
    Antarctica
    Tested on Mac OSX 10.11.1, works great!

    fvi1.png fvi2.png fvi3.png fvi4.png
     
  6. shchmue

    OP shchmue Developer
    Developer

    Joined:
    Dec 23, 2013
    Messages:
    748
    Country:
    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

    Joined:
    Jul 25, 2018
    Messages:
    438
    Country:
    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 Developer
    Developer

    Joined:
    Dec 23, 2013
    Messages:
    748
    Country:
    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 Developer
    Developer

    Joined:
    Dec 23, 2013
    Messages:
    748
    Country:
    United States
    Upon request, I added a feature that determines most recent boot time as of the time the backup was made.

    FVI3.png
     
    Last edited by shchmue, Aug 21, 2018
    Seelbreaker and hippy dave like this.
  10. mario6714

    mario6714 Member
    Newcomer

    Joined:
    Jan 23, 2013
    Messages:
    36
    Country:
    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 Developer
    Developer

    Joined:
    Dec 23, 2013
    Messages:
    748
    Country:
    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 i dont know
    Member

    Joined:
    Jun 16, 2018
    Messages:
    1,070
    Country:
    United States
    or just go to settings under system.
     
  13. Taorn

    Taorn GBAtemp Regular
    Member

    Joined:
    May 27, 2017
    Messages:
    230
    Country:
    United States
    How exactly are you going to do this with a nand backup file?
     
  14. SexySpai

    SexySpai i dont know
    Member

    Joined:
    Jun 16, 2018
    Messages:
    1,070
    Country:
    United States
    No. Go to settings on your switch.
     
  15. Ashura66

    Ashura66 GBAtemp Advanced Maniac
    Member

    Joined:
    Feb 1, 2016
    Messages:
    1,634
    Country:
    Portugal

    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
     
    gnmmarechal and Draxzelex like this.
  16. SexySpai

    SexySpai i dont know
    Member

    Joined:
    Jun 16, 2018
    Messages:
    1,070
    Country:
    United States
    oh ok.
     
  17. Taorn

    Taorn GBAtemp Regular
    Member

    Joined:
    May 27, 2017
    Messages:
    230
    Country:
    United States
    Read the description.

     
    Draxzelex likes this.
  18. xlim3y

    xlim3y Member
    Newcomer

    Joined:
    Aug 8, 2014
    Messages:
    10
    Country:
    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

    Joined:
    Aug 20, 2016
    Messages:
    3,466
    Country:
    United States
    have nand backups for multiple switches? how do I know which nand backup belongs to what switch?
     
  20. Draxzelex

    Draxzelex GBAtemp Legend
    Member

    Joined:
    Aug 6, 2017
    Messages:
    11,586
    Country:
    United States
    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.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Inspector, Firmware, Version