Skip to content

Instantly share code, notes, and snippets.

#Much code taken from https://github.com/roxas75/rxTools/blob/012a9c2fe99f2d421e68ae91f738b4028995ad67/tools/scripts/ncchinfo_gen.py
#Uses some bits and pieces from https://github.com/Mtgxyz2/3ds-FUSE
#Comments are for people that care about being able to read their code tommorrow :P
from __future__ import print_function
import os, sys, glob, struct
from Crypto.Cipher import AES
from Crypto.Util import Counter
from hashlib import sha256
from ctypes import *
from binascii import hexlify, unhexlify
@Xzonn
Xzonn / extract_ptd.py
Created October 3, 2020 05:51 — forked from NWPlayer123/extract_ptd.py
Astral Chain PTD text
#Forked from NWPlayer123/extract_ptd.py
#thanks Simon for being a smartie
#unfinished, need to parse all the tables
#string_offset starts at +0x20 (header)
from struct import unpack
import sys
sys.argv.append("Hud_text_CNzh.bin")
def read16(f):
return unpack("<H", f.read(2))[0]
@Xzonn
Xzonn / bvtest.py
Created March 24, 2020 10:59 — forked from abc1763613206/bvtest.py
BVID Validate
import requests
import json
import random
Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid='
headers = {
'Cookie': "Replace Me With REAL COOKIE" ,
'Pragma': 'no-cache',