jvazquez-r7/metasploit-framework — pull request #1 by Meatballs1 (2013-06-29 13:08:22+00:00)
Title: Exploit a remote process

This is a rough stab - I don't have time to polish it off. Could railgun a WaitForSingleObject instead of sleeping which would be much neater.

And also we could implement a call to check the UID of the remote process before executing our shellcode so we don't get lots of unnecessary shells (nearly everytime I exploit this the first attempt fails but the second attempt succeeds). If the process isn't system we can close it?