radare2/binr/preload/demo.c

13 lines
249 B
C
Raw Normal View History

2019-05-28 21:15:59 +00:00
#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;
}