Vulnerability Discovery and Analysis

A scanner flagged 300 hosts for anonymous FTP login. The tester wants to confirm the finding quickly without running exploits. Which script logic BEST validates it?

Show the answer

Correct answerA. Use Python ftplib to attempt an anonymous login on each host and record only the successes

AWhy this is right: Logging in anonymously tests the reported condition directly, so only truly vulnerable hosts remain.

BWhy not this: An accepted TCP connection shows only that a service listens; it does not prove anonymous login is permitted.

CWhy not this: Sorting by CVSS reorders the scanner's claims without testing whether any of them is true.

DWhy not this: ICMP replies show a host is alive, which says nothing about FTP configuration.

Attempting an actual anonymous login with ftplib tests the exact condition the scanner reported and filters out false positives. An open port 21 only shows FTP is listening, not that anonymous access is allowed.