by m1m1x

m1m1x /memdlopen

dlopen from memory

132 Stars 32 Forks Last release: Not found GNU General Public License v3.0 2 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:



memdlopen is a proof of concept that demonstrate the possibility to fully load a dynamic library from memory on 64 bits linux systems. To achieve this goal, runtime code patching within the process is performed in order to hook the following functions in the ld memory space : * open * lseek * read * mmap * fstat * close

This code implements methods described in Nologin's paper (


$ mkdir build

$ cmake /path/to/memdlopen

$ make


load library from a file

$ ./memdlopen -f

load library from network

$ ./memdlopen -l 8888

$ nc -w 1 8888 <


  • only tested on debian 8.0 (
  • for now, this code will only work on x86_64 systems

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.