rapid7/metasploit-framework — pull request #2033 by wchen-r7 (2013-06-28 17:59:24+00:00)
Title: Add Msf::Post::Windows::Process

The purpose of Msf::Post::Windows::Process is have all the common functions you might need to do something to a process, for example: injecting something to a process and then run it.

Usage:

1. Add require 'msf/core/post/windows/process'
2. Add include Msf::Post::Windows::Process
3. In your function, do execute_shellcode(payload.encoded, 0x0c0c0000)

The above example should inject payload into meterpreter's memory space.