rapid7/metasploit-framework — pull request #441 by darkoperator (2012-06-02 14:40:37+00:00)
Title: Fixes for getgui Meterpreter Script and enable_rdp Post Module

Added privilege checking for when:

*Creating an account on the target system
*Enabling the RDP Service

Added error checking for when:

*Creating an account

Will print now the error it got from the net command for easier understanding of why it failed. Change the cmd_exec calls to use proper command and option parameters.