Windows Manage Run Command As User | Metasploit Exploit Database (DB)

Windows Manage Run Command As User

This module will login with the specified username/password and execute the supplied command as a hidden process. Output is not returned by default, by setting CMDOUT to false output will be redirected to a temp file and read back in to display.By setting advanced option SETPASS to true, it will reset the users password and then execute the command.

Search Other Modules


Rank

  • Normal

Authors

  • Kx499 < >

Development


Similar Modules


Usage Information

$ msfconsole

                ##                          ###           ##    ##
 ##  ##  #### ###### ####  #####   #####    ##    ####        ######
####### ##  ##  ##  ##         ## ##  ##    ##   ##  ##   ###   ##
####### ######  ##  #####   ####  ##  ##    ##   ##  ##   ##    ##
## # ##     ##  ##  ##  ## ##      #####    ##   ##  ##   ##    ##
##   ##  #### ###   #####   #####     ##   ####   ####   #### ###
                                      ##

msf > use post/windows/manage/run_as
msf post(run_as) > set CMD [STRING]
msf post(run_as) > set PASS [STRING]
msf post(run_as) > set SESSION [INTEGER]
msf post(run_as) > set USER [STRING]


Module Options

CMD Command to execute
CMDOUT Retrieve command output
PASS Password to use
SESSION The session to run this module on.
USER Username to reset/login with
SETPASS Reset password
VERBOSE Enable detailed status messages
WORKSPACE Specify the workspace for this module