Skip to content

Instantly share code, notes, and snippets.

View ileathan's full-sized avatar

Spinelli Valentinuzzi ileathan

View GitHub Profile
@ileathan
ileathan / generate.sh
Last active October 27, 2023 03:28
Hacked Switch Tinfoil Custom Index Generation (From Games Directory)
# USAGE:
#
# Navigate to the directory that has all the switch rom files (your shop) and run this code.
# A shop.tfl file will be created in your local directory (you should be in your shop)
# which you can serve over http or however you chose to serve it.
# This just has the file location/size for now.
echo -e '{"files":[\n' >> shop.tfl;for f in *.nsp *.xci; do echo -e "{\n\"url\": \"$f\",\n\"size\": "$(stat "$f"|grep -oP "Size: \K\d+")"\n}," >> shop.tfl;done; echo "]}" >> shop.tfl
@ileathan
ileathan / AuroraRestoreThumbnails.sh
Created October 27, 2023 03:30
Restores xbox 360 thumbnails (root required)
set -o errexit -o nounset
# The idea is simple, the format Aurora uses is #GameID_DatabaseID where the GameID stays the same and the DatabaseID changes, so we check only the first 8 chars of the backup and the new and if they match we copy over the backups cover file to the new gamedata.
for file in GameData.bak/*; do
# Remove the following as they arnt games?
for file2 in GameData/*; do
if [ "${file2:9:8}" == "00000000" ]; then
continue
fi
if [ "${file2:9:2}" == "FF" ]; then
@ileathan
ileathan / tinfoilindex.sh
Last active October 27, 2023 05:57
A tinfoil shop in a nutshell (Rooted Nintendo Switches)
# A Tinfoil "shop" is just a collection of roms. You can place them in a directory and allow access to that directory via a simple server and your done.
# This code just loops through all the files and adds their name and filesize to a json that tinfoil likes so that it shows you file sizes.
# There are much more elaborate tools if you need just use this if you know what your doing or if I told you too.
#
# USAGE:
# bash tinfoilindex.sh "urlbase (internet link to the public facing directory with the games)" "Directory with all the games that is public facing (internet directory listing or such)" "Putput json file (serve it over http or however)"
# Example: tinfoilindex.sh "https://example.com/shop" "C:/SwitchGames" "C:/Server/public"
echo -e '{"files":[\n' >> c
i=0
@ileathan
ileathan / microsoftarecodestealers.bat
Last active October 27, 2023 03:45
Crack those crackers back, microsoft is evil.
REM ember that microsoft steals quite literally everything from open source. This should crack Windows OS verification.
@echo off
title Windows 10 ALL version activator&cls&echo ************************************&echo Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Enterprise, Enterprise LTSB&echo - Windows 10 Education&echo.&echo.&echo ************************************ &echo Windows 10 activation...
cscript //nologo c:\windows\system32\slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul