Skip to content

Instantly share code, notes, and snippets.

UEFI Protocol Detected
--------------------------------------------------------------------------------
String Packages
--------------------------------------------------------------------------------
Offset: Language:
--------------------------------------------------------------------------------
0x648 en-US (0x0)
0xF413 fr-FR (0x1)
@mouseos
mouseos / face-rcognition.py
Last active December 27, 2022 08:42
Source code for icpc demo.
import face_recognition
import cv2
import numpy as np
import glob
import re
import ctypes
import collections
#enable color for windows
ENABLE_PROCESSED_OUTPUT = 0x0001
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="https://indestructibletype.com/fonts/Jost.css" type="text/css" charset="utf-8" />
</head>
<body>
<div id="clock">
<span id="hours">00</span>
<span id="colon">:</span>
appName     : CT2S_to01.11.000_base01.04.000_update.zip
appName     : CT2L_to02.01.000_base01.06.000_update.zip
appName     : CT2L_to02.01.000_base01.06.000_update.zip
appName     : UF_TAB-A03-BS_01.16.000.zip
appName     : UF_TAB-A03-BR2_02.04.000.zip
appName     : UF_TAB-A03-BR2_02.04.000.zip
appName     : a04br3-ota-02.04.000_full.zip
appName     : a05bd-ota-01.11.000_user_full.zip
appName     : a05ba-ota-01.01.000_user_full.zip
import("stdfaust.lib");
average(x,y)=(x+y)/2;
encode(x,y)=(x:fi.lowpass(48,15000)*sw),(y@(1):fi.lowpass(48,15000)*sw)@(1):>_;
sw=waveform{
1,0}:_*0,_:>_;
decode(x)=(x*sw*2),((x*sw@(1))*2);
process1=encode:decode:(fi.lowpass(48,15000),fi.lowpass(48,15000));
import requests
import json
#トークンを取得
def get_token():
headers = {
'authority': 'platform-api.tver.jp',
'accept': '*/*',
'accept-language': 'ja-JP,ja;q=0.9,en-US;q=0.8,en;q=0.7',
'content-type': 'application/x-www-form-urlencoded; charset=utf-8',
int * prepare_kernel_cred(long param_1)
{
char cVar1;
bool bVar2;
int iVar3;
int *__dest;
int *__src;
int *piVar4;
@mouseos
mouseos / Generate mtk unlock code.c
Last active October 23, 2022 18:06
Mediatek端末のアンロックコードを計算しようとしているところ。(動作しないと思う。)
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#define SERIALNO_LEN 32
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
static char udc_chr[32] = {"ABCDEFGHIJKLMNOPQRSTUVWSYZ456789"};
int get_serial(uint64_t hwkey, uint32_t chipid, char ser[SERIALNO_LEN])
{
uint16_t hashkey[4];
int idx, ser_idx;
This file has been truncated, but you can view the full file.
[+] Version string: Linux version 5.10.43-android12-9-00007-g9771767708df-ab8009062 (build-user@build-host) (Android (7284624, based on r416183b) clang version 12.0.5 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee), LLD 12.0.5 (/buildbot/src/android/llvm-toolchain/out/llvm-project/lld c935d99d7cf2016289302412d708641d52d2f7ee)) #1 SMP PREEMPT Thu Dec 16 04:22:18 UTC 2021
[+] Guessed architecture: aarch64 successfully in 31.93 seconds
[+] Found kallsyms_token_table at file offset 0x02205b20
[+] Found kallsyms_token_index at file offset 0x02205ed0
[+] Found kallsyms_markers at file offset 0x022052e0
[+] Found kallsyms_names at file offset 0x0202d638
[+] Found kallsyms_num_syms at file offset 0x0202d630
[i] Negative offsets overall: 0 %
[i] Null addresses overall: 0 %
[+] Found kallsyms_offsets at file offset 0x01fa97e8
This file has been truncated, but you can view the full file.
[+] Version string: Linux version 4.14.87+ (user@PC-20190507A056) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02)) #1 SMP PREEMPT Wed Nov 4 09:09:54 JST 2020
[+] Guessed architecture: aarch64 successfully in 2.20 seconds
[+] Found kallsyms_token_table at file offset 0x00e500c0
[+] Found kallsyms_token_index at file offset 0x00e504c0
[+] Found kallsyms_markers at file offset 0x00e4f9c0
[+] Found kallsyms_names at file offset 0x00da62c0
[+] Found kallsyms_num_syms at file offset 0x00da61c0
[i] Negative offsets overall: 0 %
[i] Null addresses overall: 0 %
[+] Found kallsyms_offsets at file offset 0x00d71fc0