Post-exploitation and Lateral Movement
A scan of a Windows server shows TCP 5986 open and TCP 5985 closed. The tester holds valid administrator credentials and wants a remote PowerShell session. What should the tester use?
Show the answer
Correct answerD. WinRM over HTTPS
AWhy not this: WMI over DCOM uses the RPC endpoint mapper on TCP 135 and dynamic ports, not 5986.
BWhy not this: RDP uses TCP 3389 and gives a graphical desktop, not a PowerShell remoting session.
CWhy not this: Admin shares use SMB on TCP 445 and do not provide PowerShell remoting.
DWhy this is right: TCP 5986 is the default WinRM HTTPS listener, which accepts PowerShell remoting sessions.
TCP 5986 is the WinRM HTTPS listener, so a PowerShell remoting session can be opened over TLS with valid credentials. WMI over DCOM relies on TCP 135 and dynamic RPC ports, not 5986.