experiments/mem-locating-poc/main.c

12 lines
209 B
C
Raw Normal View History

2024-05-27 21:30:27 +12:00
#include <dlfcn.h>
#include <stdio.h>
#include <unistd.h>
int num = 5;
int main() {
void* handle = dlopen("./test.so", RTLD_LAZY);
void (*handle_func)() = dlsym(handle, "test");
handle_func();
}