CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/documentation/modules/post/windows/manage/run_as_psh.md
Views: 1904
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