WinRM
WinRM stands for Windows Remote Management that allows to perform management tasks on systems remotely, WinRM is available if the port is opened.
WinRM Ports:
5985/tcp (HTTP)
5986/tcp (HTTPS)
Enumeration
Find machines with PS Session
PS Session
Enable PowerShell Remoting on local system (Requires elevated privileges)
Enable-PSRemotingCreate a session
$sess = New-PSSession -Computername dcorp-adminsrv.dollarcorp.moneycorp.localEnter existing session
Enter-PSSession -ComputerName dcorp-adminsrv.dollarcorp.moneycorp.local
# Using session object
Enter-PSSession -Session $sessInvoke-Command
Useful script blocks
Winrs
Last updated
Was this helpful?