Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

TrulyNaN/autoverify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Fork of https://github.com/themoonisacheese/autoverif where I updated the requirements. It will already need an update in December 2025 since pkg_resources will get deprecated soon.

autoverify

Auto verify NSP, NSZ, XCI, XCZ to check if they have a valid hash and signature, on Linux and Windows.

Verification code stolen from NSCB, with mods from @seiya-git. This is essentially a stripped down squirrel.py that does only verification, meant for batch processing of stashes.

Usage

  -h, --help            show help message and exit
  -c CONTRIB_PATH, --contrib-path CONTRIB_PATH
                        input folder (valid games are moved from here)
  -s STASH_PATH, --stash-path STASH_PATH
                        output folder (verified games)
  -w WEBHOOK_URL, --webhook-url WEBHOOK_URL
                        discord webhook url
  -t, --check-stash     check for games with invalid format

Install

clone this repo, then:

cd autoverif
python3 -m venv .venv

#Windows:
.venv\Scripts\activate.bat
#Linux:
source .venv/bin/activate

pip3 install -r requirements.txt

Put your prod.keys in the main folder.

Examples

python3 autoverify.py -c /path/to/unverified/games -s /path/to/stash

/path/to/unverified/games must contain folders named "Base", "UPD", and "DLC" (case sensitive). Only files in these folders will be checked.

If the folders in the contrib or stash directory do not exist, they will be created.

Files that pass the signature verification will be moved to their corresponding folder in the stash directory (ie, Base to Base, etc. Only the source folder is actually considered, not whether the file really is a Base nsp).

Files that do not pass the signature verification should be DELETED by you manually. This version does NOT auto-delete if the signature fails, as opposed to themoonisacheese's version.

About

Auto verify NSP, NSZ, XCI, XCZ to check if they have a valid hash and signature, on Linux and Windows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%