Attacks and Exploits
Which default TCP port does Evil-WinRM connect to on a target for the HTTP-based WinRM listener?
Show the answer
Correct answerC. 5985
AWhy not this: TCP 445 is SMB, the transport PsExec relies on, not WinRM.
BWhy not this: TCP 5986 is the WinRM HTTPS listener, used only when SSL is requested.
CWhy this is right: TCP 5985 is the default WinRM HTTP listener port that Evil-WinRM uses.
DWhy not this: TCP 3389 is RDP, which gives a graphical session rather than a WinRM shell.
Evil-WinRM talks to the Windows Remote Management service, whose HTTP listener uses TCP 5985 by default. Port 5986 is the HTTPS listener, which Evil-WinRM only uses when SSL is requested.