遍历自身加载的dylib--获取载入地址和ASLR地址等
作者:
Acton393 | 来源:发表于
2020-09-17 16:15 被阅读0次void test()
{
printf("www.dllhook.com\nDyld image count is: %d.\n", _dyld_image_count());
for (int i = 0; i < _dyld_image_count(); i++) {
char *image_name = (char *)_dyld_get_image_name(i);
const struct mach_header *mh = _dyld_get_image_header(i);
intptr_t vmaddr_slide = _dyld_get_image_vmaddr_slide(i);
printf("Image name %s at address 0x%llx and ASLR slide 0x%lx.\n",
image_name, (mach_vm_address_t)mh, vmaddr_slide);
}
}
转自: https://www.dllhook.com/post/58.html
本文标题:遍历自身加载的dylib--获取载入地址和ASLR地址等
本文链接:https://www.haomeiwen.com/subject/vaolyktx.html
网友评论