exam questions

Exam PT0-001 All Questions

View all questions & answers for the PT0-001 exam

Exam PT0-001 topic 1 question 101 discussion

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

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?

  • A. Port scan
  • B. Service enumeration
  • C. Live host identification
  • D. Denial of service
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
D1960
Highly Voted 5 years ago
I think the answer to the question is C. But that range does not look right. for m in {1..254..1};do ping -c 1 192.168.101.$m; done I think it should be for m in {1..254};do ping -c 1 192.168.101.$m; done But it seems to work either way.
upvoted 6 times
mr_robot
5 years ago
Agree with you. https://smallbusiness.chron.com/ping-ip-addresses-lan-68381.html ping - c -->You can set the number of times ping is run. By default, it runs until stopped (Linux)
upvoted 5 times
who__cares123456789___
4 years, 2 months ago
for ip in {START..END..INCREMENT} do ping -c 1 192.168.101.$ip: done This will ping all hosts on the subnet 192.168.101.0 and will show live hosts I am almost sure! Answer C
upvoted 3 times
...
...
who__cares123456789___
4 years, 2 months ago
{1..254..1} means scan 1-254 and increment 1
upvoted 8 times
...
...
miabe
Most Recent 2 years, 9 months ago
Selected Answer: C
looks good to me
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