Post-exploitation and Lateral Movement

A tester has a shell on a Linux host in a segmented network. No scanning or capture tools are installed, and no binaries may be uploaded. Which approach BEST finds the 10.10.20.0/24 hosts exposing SMB?

Show the answer

Correct answerB. Loop over the subnet with Bash /dev/tcp connection attempts to port 445

AWhy not this: The ARP cache lists only neighbors already contacted, with no service information.

BWhy this is right: Built-in shell TCP connects to port 445 reveal which hosts listen for SMB, with no tools or uploads.

CWhy not this: Echo replies show a host is up, not that it runs SMB, and ICMP may be filtered.

DWhy not this: Config strings may hint at file servers but do not confirm which hosts expose SMB now.

Bash /dev/tcp connection attempts to port 445 test which hosts accept SMB connections, using only built-in shell features. A ping sweep only shows which hosts are alive and says nothing about which services they run.