Skip to content

Instantly share code, notes, and snippets.

@yhnu
yhnu / vcredistr.md
Created August 25, 2023 06:28 — forked from ChuckMichael/vcredistr.md
Visual C++ Redistributable Packages

Microsoft Visual C++ Redistributable Packages

  • Microsoft Visual C++ 2005 Redistributable Package
    • x64 8.0.61000 (EOL)
    • x86 8.0.61001 (EOL)
  • Microsoft Visual C++ 2008 Redistributable Package
    • x64 9.0.30729.6161 (EOL)
    • x86 9.0.30729.6161 (EOL)
  • Microsoft Visual C++ 2010 Redistributable Package
  • x64 10.0.40219.473 (EOL)
POSTFIX=64
ABI=armeabi-v7a
ANDROID_NDK=${ANDROID_NDK_ROOT}
CMAKE=${ANDROID_SDK_ROOT}/cmake/3.18.1/bin/CMAKE
BUILD_DIR=_build_${ABI}
WORKSPACE=`pwd`
[ -d ${BUILD_DIR} ] || mkdir ${BUILD_DIR}
cd ${BUILD_DIR} && ${CMAKE} -G "Unix Makefiles" \
static int print_map_list()
{
struct mm_struct *mm;
struct vm_area_struct *vma;
char path_buf[PATH_MAX];
// DEFINE_HASHTABLE(htable, 3);
// hash_init(htable);
mm = get_task_mm(current);
if (!mm)
{
➜ linux_elf git:(master) ✗ ./ftrace -s ./test2 -v -e
[+] 64bit ELF mode enabled!
[+] get_address_space from /proc/958020/maps
55953aae9000-55953aaea000 r--p 00000000 08:02 6566014 /share/linux_elf/test2
[TRACE]addrstr = 55953aae9000
[TRACE]addrstr = 55953aaea000
55953aaea000-55953aaeb000 r-xp 00001000 08:02 6566014 /share/linux_elf/test2
55953aaeb000-55953aaec000 r--p 00002000 08:02 6566014 /share/linux_elf/test2
55953aaec000-55953aaee000 rw-p 00002000 08:02 6566014 /share/linux_elf/test2
@yhnu
yhnu / BookmarkHub
Last active July 2, 2021 01:15
BookmarkHub
{"browser":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36","version":"0.0.3","createDate":1625188538869,"bookmarks":[{"children":[{"children":[{"title":"HeapDump","url":"https://www.one-tab.com/page/B7Q4RjP3QES96vzw5l1V5g"},{"title":"光照模型","url":"https://www.one-tab.com/page/ll0k2dZqTZKt_QdVlY0eeg"},{"title":"brrrrrf","url":"https://www.bilibili.com/"},{"title":"OneTab shared tabs","url":"https://www.one-tab.com/page/-RKJeEdZTXe7_d7Dxr7DYw"}],"title":"OneTab"},{"title":"增加到 ownCloud","url":"javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=c(document.title),d=a.open('https://cloud.alphaz.cn/index.php/apps/bookmarks/bookmarklet?output=popup&url='+c(b.location)+'&title='+e,'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=400px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300);})();"},{"children":[{"title":"fir.im - Free beta app hosting servic
#pragma once
#include "offsets.h"
#include "math.h"
#include "utils.h"
struct Rect {
float x, y, width, heigh;
};
struct Il2CppString;
#include "il2cpp.h"
#include <dlfcn.h>
#include "base/log.h"
namespace il2cpp
{
// variables
intptr_t libbase;
void* libhandler = nullptr;
// api
// Namespace: UnityEngine
public sealed class Mesh : Object // TypeDefIndex: 3069
{
// Properties
public IndexFormat indexFormat { get; set; }
public Int32 vertexBufferCount { get; }
public Int32 blendShapeCount { get; }
public Matrix4x4[] bindposes { get; set; }
public Boolean isReadable { get; }
internal Boolean canAccess { get; }
@yhnu
yhnu / Tweak.xm
Created December 11, 2019 08:33
[YouTubeHook]
/* How to Hook with Logos
Hooks are written with syntax similar to that of an Objective-C @implementation.
You don't need to #include <substrate.h>, it will be done automatically, as will
the generation of a class list and an automatic constructor.
%hook ClassName
// Hooking a class method
+ (id)sharedInstance {
return %orig;
/*
** $Id: lauxlib.c,v 1.286 2016/01/08 15:33:09 roberto Exp $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
#define lauxlib_c
#define LUA_LIB
#include "lprefix.h"