rapid7/metasploit-framework — pull request #13 by corelanc0d3r (2011-11-13 20:10:37+00:00)
Title: Shellcode migrator

Merged code previously submitted as http://dev.metasploit.com/redmine/issues/4943

When enabled as a payload option, this patch will insert a stub before the actual shellcode.
The stub will spawn a new process, allocate some RWX memory, inject the actual shellcode and then run the shellcode inside the new process.
This allows you to migrate your shellcode into a new process, which may be needed in case of terribly broken and corrupted memory in the current process.

Works for win x86

Functionality is disabled by default.