scriptjunkie/metasploit-framework — pull request #1 by wchen-r7 (2012-10-19 17:38:21+00:00)
Title: Add prepend_migrate?

After discussing with egypt and Tod for the 3rd time about pull request 917 ("Add migrate stub option to Windows x86 payloads"), this is the approach we've decided to take:

'DefaultOptions' => { 'PrependMigrate' => true },

And then in exploit():

if !prepend_migrate?
print_error("PrependMigrate should not be turned off")
return
end

In case you're wondering why we're not using deregister_options()... it's because if we use it, the PrependMigrate option will be erased completely and will always be 'false'.