CompTIA PenTest+ (PT0-001) — Question 53

A penetration tester has performed a pivot to a new Linux device on a different network. The tester writes the following command: for m in {1..254..1};do ping -c 1 192.168.101.$m; done
Which of the following BEST describes the result of running this command?

Answer options

Correct answer: C

Explanation

The command performs a ping sweep across a range of IP addresses in the subnet 192.168.101.1 to 192.168.101.254, which is primarily used to check which hosts are active, hence identifying live hosts. Port scanning and service enumeration involve different techniques and objectives, while a denial of service attack is not related to this command's function.