Skip to content

Instantly share code, notes, and snippets.

View Pldare's full-sized avatar
🏀
you program like CXK

Pldare Pldare

🏀
you program like CXK
View GitHub Profile
@Pldare
Pldare / loadsizeinfo.py
Last active August 20, 2021 05:26
sizeinfo parse
import struct
def tobit(x):
if x>=1000000000000:
return str(round(x/1000000000000,2))+'TB'
elif x>=1000000000:
return str(round(x/1000000000,2))+'GB'
elif x>=1000000:
return str(round(x/1000000,2))+'MB'
elif x>=1000:
return str(round(x/1000,2))+'KB'
@Pldare
Pldare / gmetadata_decrypt.cs
Created August 13, 2021 21:19
touhu game android global-metadata decrypt
using System;
using System.IO;
namespace Globalmeta{
class Globalmetadec{
public static void Main(string[] argv){
using (FileStream fs=new FileStream(argv[0],FileMode.Open)) {
using (BinaryReader bs=new BinaryReader(fs)) {
byte[] pwd=new byte[]{0x75,0xCD,0xB2,0xCF,0x19,0xDB,0x08,0x3F};
byte[] header=new byte[]{0xAF,0x1B,0xB1,0xFA,0x18,0x00,0x00,0x00,0x08,0x01,0x00,0x00};
byte[] use_pwd=new byte[8];
@Pldare
Pldare / aes.cs
Created August 10, 2021 01:46
vroid web view vrm decrypt
using System;
using System.Security.Cryptography;
using System.IO;
using System.IO.Compression;
namespace Vroid
{
class Vroiddec
{
static void Main(string[] args)
{
@Pldare
Pldare / decryptResource.cs
Last active August 14, 2021 07:17
SHINY_COLORS_dec
using System;
using System.IO;
using System.IO.Compression;
namespace Shiny
{
class Shiny_dec
{
static void Main(string[] args)
{
using (FileStream fs = new FileStream(args[0],FileMode.Open)) {
"""
from waigua.Util import *
src = liezao.malloc(8)
dst = liezao.malloc(8)
liezao.doCall(readU64(0x144B51330),dst)
liezao.doCall(readU64(0x144B50FF8),src,"3a85aa1edaae3aaa5aaafaaa5aa5ea7a7aae5aaa3caadaa5feaafaaadaaaadaaaadddaaa6daa5a6e2aadacdabada3aaa")
liezao.doCall(0x140EFEB40,src,dst)
"""
hwid = open("md.hw").read().strip()
sbox = [