pentesting, updated

Remote command execution with valid credentials

Get interactive or command execution on a remote host once you hold a valid credential or hash for it.

Goal

Turn a validated credential into an interactive session or arbitrary command execution on the target host, choosing the quietest method the environment allows.

How to test

evil-winrm -i 10.10.10.6 -u jdoe -p Password1                # WinRM, needs port 5985/5986 open
impacket-wmiexec jdoe:Password1@10.10.10.6                     # WMI, quieter than psexec: see [Impacket](/docs/pentest-cheatsheets/tools/network/impacket)
impacket-psexec jdoe:Password1@10.10.10.6                     # classic service-based exec, noisier
impacket-smbexec jdoe:Password1@10.10.10.6                    # no service binary dropped to disk

What to look for

Successful execution as the authenticating user or, with a service-based method, as SYSTEM regardless of the account’s own privilege level on that host.

Notes

psexec and smbexec drop/create a service and are far noisier on EDR-monitored hosts than wmiexec or a native WinRM session — pick the method to match the engagement’s stealth requirement.

§ home
~/knubertus/home/
1,1 Top