摘要: 设置属性 // frameworks/base/core/java/android/os/SystemProperties.java native_set(String key, String def); // frameworks/base/core/jni/android_os_SystemPr 阅读全文
posted @ 2024-06-25 10:36 梦过无声 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Xposed XposedBridge hook模板 public static XC_MethodHook.Unhook findAndHookMethod(Class<?> clazz, String methodName, Object... parameterTypesAndCallback 阅读全文
posted @ 2024-06-24 18:42 梦过无声 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 参考 lsposed运行流程分析 riru 通过修改系统属性ro.dalvik.vm.native.bridge将libriruloader.so注入到zygote进程中 zygote会执行LoadNativeBridge函数, LoadNativeBridge函数会根据属性ro.dalvik.vm 阅读全文
posted @ 2024-06-21 18:52 梦过无声 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Frida Gadget 方案 Frida Gadget 配置文件 { "interaction": { "type": "script-directory", "path": "/usr/local/frida/scripts" } } 网络方式 { "interaction": { "type" 阅读全文
posted @ 2024-05-24 13:54 梦过无声 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 五种预编译选项 var prebuiltTypes = map[string]string{ "SHARED_LIBRARIES": "cc_prebuilt_library_shared", "STATIC_LIBRARIES": "cc_prebuilt_library_static", "EX 阅读全文
posted @ 2024-05-24 13:23 梦过无声 阅读(53) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <sys/ptrace.h> #include <stdint.h> #include <errno.h> #include <sys/wait.h> int main(int argc, char* a 阅读全文
posted @ 2024-05-18 23:40 梦过无声 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 起因 某APP注册NetworkCallback无法收到回调,当使用默认的NetworkRequest可以收到回调 connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); networkCallb 阅读全文
posted @ 2024-03-15 10:25 梦过无声 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #define max(a, b) (((a) > (b)) ? (a) : (b)) // 定义树节点结构体 typedef struct TreeNode { int key; struct TreeNode *lef 阅读全文
posted @ 2024-02-19 18:30 梦过无声 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 玩转内核链表list_head container_of 是 Linux 内核中一个常用的宏,用于从结构体的成员指针获取包含该成员的整个结构体的指针。 /** * container_of - cast a member of a structure out to the containing st 阅读全文
posted @ 2024-02-18 16:29 梦过无声 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 管中窥豹 重要的kprobe和队列 $ grep -rn INIT_WORK ./ ./uid_observer.c:137: INIT_WORK(&ksu_update_uid_work, do_update_uid); ./ksud.c:563: INIT_WORK(&stop_vfs_read 阅读全文
posted @ 2024-01-04 19:58 梦过无声 阅读(189) 评论(0) 推荐(0) 编辑