Post-exploitation and Lateral Movement

A tester pipes one command's output into a utility that keeps only lines containing "ESTABLISHED". Which Windows utility does this?

Show the answer

Correct answerA. findstr.exe

AWhy this is right: findstr.exe reads piped input and prints only lines that match a given text pattern.

BWhy not this: Netstat produces the connection list that would be filtered; it does not filter other commands' output.

CWhy not this: rundll32 runs functions exported by DLLs; it has no text-matching role.

DWhy not this: route displays and edits the routing table; it does not search text.

findstr.exe is a built-in utility that matches text patterns, so it can filter piped output down to the lines of interest. Netstat is tempting because it produces connection output, but it only lists connections and cannot filter text.