Run Commands AS
Some times we need to do a lateral or vertical movement between the same hosts only switching between local users, and we cant use any type of authenticated service such as SMB or SSH.
Linux
Linux has the easiest way to change between users using the su
command.
To change to root
user (need to be in sudoer group)
Windows
Cmd
runas
command gives us the oportunity in cmd
the opportunity to run some commands as other users.
PsExec
PsExec is part of a growing kit of Sysinternals command-line tools that aid in the administration of local and remote systems named PsTools.
Powershell
NetBSD
Similar like sudo
Similar like sudo
to change to root
user:
Last updated
Was this helpful?