Skip to content

android 12 getExportByName 获取不到地址 #3

@liquan165

Description

@liquan165

function hookart() {
if (ishook_libart === true) {
return;
}
var module_libext = null;
if (Process.arch === "arm64") {
module_libext = Module.load("/data/app/fart64.so");
} else if (Process.arch === "arm") {
module_libext = Module.load("/data/app/fart.so");
}
if (module_libext != null) {
addrGetCodeItemLength = module_libext.base.add(0x18840+1);
// addrGetCodeItemLength = module_libext.getExportByName("GetCodeItemLength");
funcGetCodeItemLength = new NativeFunction(addrGetCodeItemLength, "int", ["pointer"]);
// addrBase64_encode = module_libext.findExportByName("Base64_encode");
addrBase64_encode = module_libext.base.add(0x10654+1);
funcBase64_encode = new NativeFunction(addrBase64_encode, "pointer", ["pointer", "int", "pointer"]);

   // addrFreeptr = module_libext.findExportByName("Freeptr");
   addrFreeptr = module_libext.base.add(0x11F88+1); 
    funcFreeptr = new NativeFunction(addrFreeptr, "void", ["pointer"]);
}

改一下就可以

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions