Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/post/windows/manage/run_as_psh.md
Views: 11788
Overview
This module will start a process as another user using powershell. By default, it will start an interactive cmd as the target user.
Options
USER - The use to run the program as.
PASS - The user's password
DOMAIN - The domain of the user
EXE - The program to run (default cmd.exe)
ARGS - The program arguments
PATH - The path to run the program in (default C:\)
CHANNELIZE - Channelize the output, required to read output or interact
INTERACT - Interact with program
HIDDEN - Hide the console window
Module Process
The process will use the Start-Process command of powershell to run a process as another user.
Limitations
Requires Powershell
Hidden Mode does not work with older powershell versions
Interactive mode needs to be run from a meterpreter console
Certain SYSTEM Services cannot run Start-Process with the -credential switch, causing the module to fail
SYSTEM processes without I/O pipes cannot use interactive mode