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
su usersudo su -Windows
Cmd
runas /user:username <program>
runas /user:domain\username <program>
runas /user:username@domain <program>PsExec
psexec.exe /accepteula
psexec.exe [\\COMPUTER] /u USER /p PASS cmd [args]Powershell
NetBSD
Last updated