Skip to content

Instantly share code, notes, and snippets.

@TUGOhost
TUGOhost / change_rom.md
Created January 3, 2024 06:19
changeRom

change_rom

打印动态注册

  1. Aosp10/art/runtime/jni/jni_internal.cc

      static jint RegisterNatives(JNIEnv* env,
                                  jclass java_class,
                                  const JNINativeMethod* methods,
@TUGOhost
TUGOhost / enc_str.cc
Created May 4, 2023 07:13 — forked from yujincheng08/enc_str.cc
Compile time encrypt string
#include "enc_str.h"
#include <cstdio>
static_assert(next_prime<next_prime<4>> == next_prime<4> && next_prime<4> == 5, "??");
static constexpr auto j = "I love vvb2060 and she's my wife."_senc;
static constexpr auto k = ".."_senc;
static constexpr auto l = j + k;
int main() {
Windows10下编译LLVM与Clang
1、下载安装CMake
2、下载安装Visual studio,按照C++ Desktop开发进行下载相关配置
3、下载llvm与clang对应的版本到本地,整体目录如下:
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2023/3/20 13:55 clang
d---- 2023/3/20 13:55 llvm-5.0.2.src
4、命令行下:运行
>mkdir build && cmake.exe -S .\llvm-5.0.2.src\ -B .\build\ -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=X86 -Thost=x64
@TUGOhost
TUGOhost / anti-anti-frida.ts
Created September 8, 2022 05:30
anti anti-frida
function antiAntiFrida() {
var strstr = Module.findExportByName(null, "strstr");
if (null !== strstr) {
Interceptor.attach(strstr, {
onEnter: function (args) {
this.frida = Boolean(0);
this.haystack = args[0];
this.needle = args[1];