Loading raw code from C program

后端 未结 4 1288
醉梦人生
醉梦人生 2020-12-06 06:09

I\'m writing a program that loads and executes code from file. But i got a problem: \"write\" syscall does not work. Code successfully loads and executes, but does not displ

4条回答
  •  囚心锁ツ
    2020-12-06 06:38

    Why are you not using .so files to dynamically load your code? Are you testing a security scenario or really trying to dynamically load and run code?

    Read here on how to compile code as a .so, load it dynamically within a program, and execute exported functions out of it.

    http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html

提交回复
热议问题