python3 fakeshop.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Configuration values | |
$expectedHauth = '0123456789ABCDEF0123456789ABCDEF'; | |
$altHauth = 'FEDCBA9876543210FEDCBA9876543210'; | |
$defaultHtml = "../index.html"; | |
// Get HAUTH header | |
$hauth = $_SERVER['HTTP_HAUTH'] ?? null; | |
// Check if HAUTH matches expectedHauth or altHauth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign Key Data: | |
Modulus: | |
D8F118EF32724CA7474CB9EAB304A8A4AC99080804BF6857B843942BC7B9664985E58A9BC1009A6A8DD0EFCEFF86C85C5DE9537B192AA8C022D1F3220A50F22B65051B9EEC61B563A36F3BBA633A53F4492FCF03CCD750821B294F08DE1B6D474FA8B66A26A0833F1AAF838F0E173FFE441C56942E49838303E9B6ADD5DEE32DA1D966205D1F5E965D5B550DD4B4776EAE1B69F3A6610E51623928637576BFB0D222EF98250205C0D76A062CA5D85A9D7AA421559FF93EBF16F607C2B96E879EB51CBE97FA827EED30D4663FDED81B4B15D9FB2F50F09D1D524C1C4D8DAE851EEA7F86F30B7B8781982380634F2FB062CC6ED24613652BD6443359B58FB94AA9 | |
Exponent: | |
010001 | |
P: | |
FB5AA488479A690AD82994AA2D4F5F78174C8537CC7984B57ADCC6256AC3CEA72B62CDFCEBA1973DEF96C376FE3F314D3C9B55E2DC0AF343BAB6210DDD78986A25B82A6D2109981A7510ECFCC1D799675D6F93EE91614AF1C996416869AF837A65B8469BEC74D720FBB912E64B63BFCAC5C31BF873AF77EFF6B064ECA8C9AA41 | |
Q: | |
DCF39F646DF38C9038E7A0361521ABAF6E2A1D0E4D569A411F9B0FE16792124DECC5653138C4A7AD45A742EAE5BC007D6643BBF83E47B6584DDC537E454D15E490495C3B650C5E2D596522AB2191CAD5BAC218D753D77D8308A31D426B72C68DBD8B05B171AAE08 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
def split_file(input_file, chunk_size, output_folder): | |
# Create a folder for the split files | |
base_name = os.path.splitext(os.path.basename(input_file))[0] | |
ext_name = os.path.splitext(os.path.basename(input_file))[1] | |
output_folder_name = os.path.join(output_folder, f'{base_name}_split{ext_name}') | |
os.makedirs(output_folder_name, exist_ok=True) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
import requests | |
import zstandard | |
import subprocess | |
import shutil | |
import time | |
# Directory path to search | |
search_directory = "/path/to/stash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get the requested image filename from the query parameter | |
if (isset($_GET['image'])) { | |
$requestedImage = $_GET['image']; | |
// Check if the requested image exists in the 'images' folder | |
$imagesDir = 'images/'; | |
$requestedImagePath = $imagesDir . $requestedImage; | |
if (file_exists($requestedImagePath)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Decrypt with the only key needed to obtain your titlekeys. | |
ddffd9e6c550750b187ba5c09e669d40db5d031964cd63455d78d73ba24ae62b | |
Gathered from info from http://switchbrew.org/index.php?title=Ticket | |
1) dump your nand with linux | |
2) open NAND dump with HACDISKMOUNT | |
3) extract/dump PRODINFO partition with BIS0 key | |
4) mount SYSTEM (with BIS2 keys) and copy Save/80000000000000e2 to your physical harddrive |