Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am blluv on github.
  • I am blluv (https://keybase.io/blluv) on keybase.
  • I have a public key whose fingerprint is 02EA E237 8DF6 CC6A 45E9 2D57 B776 B38E 53BE EA7C

To claim this, I am signing this object:

@blluv
blluv / gist:5833a42a5fa3bf53104d32cafde8f0e5
Created November 4, 2021 15:43
remove all notranslate class
document.querySelectorAll(".notranslate").forEach(e=>e.classList.remove("notranslate"))
@blluv
blluv / decrypt.py
Last active November 4, 2023 06:39
HighFleet seria_enc decrypt
f = open("./english.seria_enc", "rb")
data = list(f.read())
a = 0
b = 2531011
while a < len(data):
data[a] = (b ^ (b >> 15) ^ data[a]) & 0xff
b += 214013
@blluv
blluv / read.py
Created January 23, 2022 06:23
read another python process int list
from mem import MemoryOSX
import struct
proc = MemoryOSX(int(input("pid: ")))
idval = int(input("address: "))
idval += 8
m = struct.unpack("L", proc.read_bytes(idval, 8))[0]
idval += 8
@blluv
blluv / mem.py
Created January 23, 2022 06:24
osx memory read
# https://github.com/n1nj4sec/memorpy/blob/master/memorpy/OSXProcess.py
import ctypes
import ctypes.util
ctypes.cdll.LoadLibrary('/usr/lib/libc.dylib')
libc = ctypes.CDLL('/usr/lib/libc.dylib')
class MemoryOSX():
def __init__(self, pid):
@blluv
blluv / mac_ktalk_dec.py
Last active February 25, 2022 11:46
decrypt mac kakaotalk database :)
import hashlib
import base64
def pbkdf2(password: bytes, salt: bytes):
return hashlib.pbkdf2_hmac("sha256", password, salt, 100000, 128)
def hashedDeviceUUID(uuid: str):
uuid = uuid.encode("ascii")
return base64.b64encode(hashlib.sha1(uuid).digest() + hashlib.sha256(uuid).digest()).decode("ascii")
@blluv
blluv / pkcs12.dart
Created April 9, 2022 17:44
pkcs12 key derive
Uint8List deriveKey(
List<int> password, List<int> salt, int keySize, int iterations) {
var np = Uint8List(password.length * 2 + 2);
for (var i = 0; i < password.length; i++) {
np[i * 2] = 0;
np[i * 2 + 1] = password[i];
}
const sha1BlockSize = 64;
const sha1DigestSize = 20;
@blluv
blluv / check.py
Created June 12, 2022 15:11
check valid expr
import ast
def checkValid(expr: str):
try:
tree = ast.parse(expr)
except:
return False
if len(tree.body) != 1:
return False
@blluv
blluv / webp2webm.cc
Created July 21, 2022 14:21
webp2webm
#include <webp/decode.h>
#include <webp/demux.h>
#include <fstream>
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavutil/avutil.h>
#include <libavutil/opt.h>
#include <libavformat/avformat.h>
#include <libavutil/imgutils.h>
#include "pch.h"
#include <windows.h>
#include "D:\\Detours-master\\include\\detours.h"
#pragma comment(lib, "D:\\Detours-master\\lib.X86\\detours.lib")
#pragma warning(disable : 4996)
#include <stdio.h>
/*
typedef LPDIRECT3DDEVICE9(*GetDeviceFunc)();