Homebrew WIP Nut

  • Thread starter Thread starter blawar
  • Start date Start date
  • Views Views 46,898
  • Replies Replies 97
  • Likes Likes 8

blawar

Developer
Developer
Joined
Nov 21, 2016
Messages
1,708
Reaction score
1,887
Trophies
1
Age
42
XP
4,433
Country
United States
This is a program that automatically downloads all games from the CDN, and organizes them on the file system as backups. You can only play games that you have legally purchased / have a title key for. Nut also provides a web interface for browsing your collection, and downloading from.

You should copy nut.default.conf to nut.conf and make all of your local edits in nut.conf.

If you only wish to rename / organize files, and not download anything, edit nut.conf and set all downloading options to false. Your NSP files should have the titleid as a part of the filename in brackets.

It can download any titles you do not have a key for (for archiving), by enabling sansTitleKey in nut.conf. These titles are saved with the .nsx file extension, and can be unlocked at a later time when a title key is found.

Nut can also change the master key encryption of titles, and remove title rights from titles.

This program is designed for intermediate to advanced users. It is heavily a WIP, so please do not report things broken.

http://github.com/blawar/nut

ss.jpg
 
You dont use your own key when useing a cdn, you use someone elses that they have donated, message me if you want me to help you set it up.

You would've thought that Nintendo would've planned ahead with the certificates. Turns out they didn't. Good job, Nintendo. Claps
 
You would've thought that Nintendo would've planned ahead with the certificates. Turns out they didn't. Good job, Nintendo. Claps

Nothing they can do. It’s a simple money equation. If it costs them 5 million more per year in increased cdn fees for auth, to stop 2 million in piracy, they are going to let it slide.
 
  • Like
Reactions: -----a
Nothing they can do. It’s a simple money equation. If it costs them 5 million more per year in increased cdn fees for auth, to stop 2 million in piracy, they are going to let it slide.
Really, they dont care, not a big enough loss for them, probably only a few thousand ppl use cdn for piracy a day.
 
l am completely new to this so forgive if I ask something silly, but when running the script I get the following warnings/errors. Can these be ignored or should I first fix something

root@vault13:/dikkert/Server/Games/nut# python nut.py
,;:;;,
;;;;;
.=', ;:;;:,
/_', "=. ';:;:;
@=:__, \,;:;:'
_(\.= ;:;;'
`"_( _/="`
`"'
loaded titledb/default.txt in 0.149381 seconds
could not load files file
loaded file list in 4.699999999996374e-05 seconds
Queue load error: [Errno 2] No such file or directory: 'queue.txt'
.
organizing
removing empty directories
starting thread 0
starting thread 1
starting thread 2
starting thread 3
Downloading Monster Energy Supercross - The Official Videogame [0100742007266000] v0:
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
Downloading World to the West [01000e30042f2000] v0:
Downloading Mo Jie Zhan Ji deisugaia Refine [010076500aa42000] v0:
Downloading hatsupibasudeizu [0100c88008ba6000] v0:
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
Verified 7e9eaebefa5488f45510435403e27b35.nca...
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
 
Hi @blawar, just a question, what sofware did you use to make the titledb.txt? Did you manage to update Shogun or so?

Shogun access is very limited as you know. We can scrape shogun, but generally wont except for very specific titles we cant get info from elsewhere, as scraping shogun will burn the cert within a day or so generally. I generally will scrape the public eshop site's for info.

--------------------- MERGED ---------------------------

l am completely new to this so forgive if I ask something silly, but when running the script I get the following warnings/errors. Can these be ignored or should I first fix something

root@vault13:/dikkert/Server/Games/nut# python nut.py
,;:;;,
;;;;;
.=', ;:;;:,
/_', "=. ';:;:;
@=:__, \,;:;:'
_(\.= ;:;;'
`"_( _/="`
`"'
loaded titledb/default.txt in 0.149381 seconds
could not load files file
loaded file list in 4.699999999996374e-05 seconds
Queue load error: [Errno 2] No such file or directory: 'queue.txt'
.
organizing
removing empty directories
starting thread 0
starting thread 1
starting thread 2
starting thread 3
Downloading Monster Energy Supercross - The Official Videogame [0100742007266000] v0:
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
Downloading World to the West [01000e30042f2000] v0:
Downloading Mo Jie Zhan Ji deisugaia Refine [010076500aa42000] v0:
Downloading hatsupibasudeizu [0100c88008ba6000] v0:
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
Verified 7e9eaebefa5488f45510435403e27b35.nca...
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html

It sounds like you didnt add the required files. You should read the readme. You need to locate 3 files:

  • Certificate.cert
  • nx_tls_client_cert.pem
  • keys.txt
 
I found them and placed them in the same dir as the .py script. I feel stupid to ask but what do you mean with: "your already configured CDNSP directory."
 
I found them and placed them in the same dir as the .py script. I feel stupid to ask but what do you mean with: "your already configured CDNSP directory."

It just says that so people can get those 3 files they need. It does not need to be in a CDNSP dir.

Is it actually downloading? Those warnings about queue.txt and files can be ignored, i need to clean up error handling and warnings.

--------------------- MERGED ---------------------------

Hi @blawar, just a question, what sofware did you use to make the titledb.txt? Did you manage to update Shogun or so?

that text file isnt even the full database. If you want the full database, run nut.py --scrape and then check out titles.json :)
 
When I set "sansTitleKey" to TRUE it downloads files so I guess I am almost there? Perhaps I do not have sufficient keys in my keys.txt?
 
When I set "sansTitleKey" to TRUE it downloads files so I guess I am almost there? Perhaps I do not have sufficient keys in my keys.txt?

what that means, is that you don't have any title keys. You need a title key to play the game. You can get the title key by purchasing the game and dumping the key. However some unscrupulous people share their title keys and engage in piracy. If you do engage in piracy, I would hope you at least purchase / support the games you enjoy. There are many public database files full of title keys. sansTitleKey basically means preload the game until a title key is found.
 
Gottit, for now I am just playing and try to understand how things work. Thanks for your patience and understanding
 

Site & Scene News

Popular threads in this forum