metasploit-framework/external/source/dllinject
..
README
generic.c
libloader.c
libloader.h
shell.c
srv.c
tester.c

README

This is the in-memory DLL injection system developed by Jarkko Turkulainen
and Matt Miller. The payload included with the Metasploit Framework is simply
the output of libloader.c (it sends a chunk of itself over as the payload).