This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace ConsoleAppFramework | |
{ | |
public static class ABA | |
{ |
This file contains hidden or 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 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', |
This file contains hidden or 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
#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 |
This file contains hidden or 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
#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("files/TalkSubtitleMessage_USen.bin") | |
def read16(f): | |
return unpack("<H", f.read(2))[0] |