exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 24 discussion

Actual exam question from CompTIA's PT0-002
Question #: 24
Topic #: 1
[All PT0-002 Questions]

A penetration tester writes the following script:

Which of the following objectives is the tester attempting to achieve?

  • A. Determine active hosts on the network.
  • B. Set the TTL of ping packets for stealth.
  • C. Fill the ARP table of the networked devices.
  • D. Scan the system on the most used ports.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RRabbit_111
Highly Voted 2 years, 3 months ago
Selected Answer: A
A. Determine active hosts on the network. The script is using a loop that iterates through a range of IP addresses (10.10.1.1 to 10.10.1.254) and for each IP address, it sends a single ping packet (ping -c 1) to the IP address. The purpose of this script is to determine which IP addresses on the network are active by checking which IP addresses respond to the ping. This is a common method used to perform host discovery and identify active hosts on a network. The script is not attempting to set the TTL of ping packets for stealth (Option B), fill the ARP table of the networked devices (Option C), or scan the system on the most used ports (Option D).
upvoted 10 times
...
MeisAdriano
Most Recent 9 months ago
Selected Answer: A
A: Just a single ping packet to find if connected
upvoted 1 times
...
surfuganda
1 year, 1 month ago
Selected Answer: A
A. Determine active hosts on the network. The script is a Bash script that utilizes a loop to iterate through IP addresses in the range from 10.10.1.1 to 10.10.1.254 (excluding 10.10.1.255). For each IP address, it sends a single ICMP echo request (ping) using the ping command with the -c 1 option, which specifies to send only one packet. By sending ICMP echo requests to each IP address in the specified range, the script is attempting to determine which hosts are active and responsive on the network. If a host is active and reachable, it should respond to the ICMP echo request with an ICMP echo reply (ping response). This process helps the penetration tester identify live hosts that can be further targeted or assessed for vulnerabilities.
upvoted 1 times
...
bieecop
1 year, 9 months ago
Selected Answer: A
By executing this script, the penetration tester aims to determine which IP addresses within the specified range are responding to the ICMP echo requests. This helps identify active hosts on the network, as those that respond to the ping requests indicate their presence and connectivity.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago