rapid7/metasploit-framework — pull request #638 by wchen-r7 (2012-07-23 07:53:37+00:00)
Title: Support more options in cmd_exec()

When cmd_exec() uses Process.execute(), it should be able to pass all the possible options supported by Process.execute():
* Hidden
* Channelized
* Suspended
* UseThreadToken
* Desktop
* Session
* InMemory

The source code for Process.execute() can be found here:
https://github.com/rapid7/metasploit-framework/blob/master/lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb#L117

Also, since the original cmd_exec() wants Hidden and Channelized set to true, those options are still enforced for now.