radare2/binr/preload/demo.c
2019-05-28 23:15:59 +02:00

13 lines
249 B
C

#include <stdio.h>
#include <dlfcn.h>
int main(int argc, char **argv) {
void *a = dlopen(NULL, RTLD_LAZY);
void *m = dlsym (a, "r_main_radare2");
if (m) {
int (*r2main)(int argc, char **argv) = m;
return r2main (argc, argv);
}
return 0;
}