ios-kernel-patch/data/mach-o/inject.h

11 lines
501 B
C
Raw Permalink Normal View History

2021-02-18 10:42:34 +07:00
#pragma once
#include "binary.h"
addr_t b_allocate_vmaddr(const struct binary *binary);
// these two functions will modify binary->valid_range and trash everything else.
uint32_t b_macho_extend_cmds(struct binary *binary, size_t space);
// this function works for both the kernel and uselrand binaries. for userland, pass NULL for find_hack_func.
void b_inject_macho_binary(struct binary *target, const struct binary *inject, addr_t (*find_hack_func)(const struct binary *binary), bool userland);