psexec.py
all
Execute commands on a remote Windows machine using `RemComSvc`, providing PsExec-like functionality. Part of the Impacket suite.
More info →Examples (7)
Spawn an interactive shell on a remote target
psexec.py domain/username:password@targetExecute a specific command on a remote target
psexec.py domain/username:password@target commandCopy the filename for later execution, arguments are passed in the command
psexec.py -c filename domain/username:password@target commandExecute a command from a specific path on a remote target
psexec.py -path path domain/username:password@target commandAuthenticate using pass-the-hash authentication instead of a password
psexec.py -hashes LM_Hash:NT_Hash domain/username@targetUse Kerberos authentication for the target
psexec.py -k -no-pass domain/username@targetSpecify the IP address of the domain controller
psexec.py -dc-ip domain_controller_ip domain/username:password@targetmade by @shridhargupta | data from tldr-pages