rapid7/metasploit-framework — pull request #1103 by scriptjunkie (2012-11-28 03:44:05+00:00)
Title: Support silent shellcode injection into DLLs

Only run code on DLL_PROCESS_ATTACH, preventing infinite loop otherwise:
Added code would create thread -> calls DLL entry point -> calling added code...