exam questions

Exam PT0-001 All Questions

View all questions & answers for the PT0-001 exam

Exam PT0-001 topic 1 question 93 discussion

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

A consultant wants to scan all the TCP ports on an identified device. Which of the following Nmap switches will complete this task?

  • A. -p-
  • B. -p ALL
  • C. -p 1-65534
  • D. -port 1-65534
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
AcidBunny
Highly Voted 4 years, 6 months ago
Guys, there are 65535 tcp ports and not 65534, answer is A. 100% sure
upvoted 9 times
...
mr_robot
Highly Voted 5 years, 1 month ago
Correct answer should be: -p- 1-65535 As per PenTest+ Practice Tests Book - Sybex nmap is the most commonly used command-line vulnerability scanner and is a free, open source tool. It provides a broad range of capabilities, including multiple scan modes intended to bypass firewalls and other network protection devices. Nmap is a port scanner. To scan for ports, you will want to use -p <port ranges> (only scan specified ports). This option specifies which ports you want to scan and overrides the default scan. Individual port numbers or ranges are acceptable. Ranges are separated by a hyphen (e.g., 1-1023). The beginning and/or end values of a range may be omitted, causing nmap to use 1 and 65535, respectively. So, you can specify -p- to scan ports from 1 through 65535. Port scanning a system simply requires that nmap be installed and that you provide the target system’s hostname or IP address.
upvoted 9 times
casandre123
3 years, 7 months ago
None of the answers show -p- 1-65535. Besides that's kinda redundant if -p- by default goes over all ports, actually the last part of this sybex book says -p-, no need to specify ports.
upvoted 1 times
...
...
kloug
Most Recent 2 years, 2 months ago
aaaaaa
upvoted 1 times
...
miabe
2 years, 9 months ago
Selected Answer: A
looks good to me
upvoted 1 times
...
Nana1990
3 years ago
Selected Answer: A
-p- scan all TCP ports. keyword TCP ports
upvoted 1 times
...
Cock
3 years, 2 months ago
It was on the exam
upvoted 2 times
...
aww
4 years, 5 months ago
Correct Answer is A nmap -p- [ip_address] This command will initiate a scan against the target host looking for all ports (1-65535).
upvoted 5 times
...
sndksad
4 years, 11 months ago
a. -p- https://nmap.org/book/man-port-specification.html
upvoted 9 times
...
MikeHunt
4 years, 11 months ago
Should be A.) the p 1-65534 command is missing the last port
upvoted 4 times
...
deathfrom
5 years ago
-p- and -p 1-65534 do exactly the same thing
upvoted 2 times
deathfrom
5 years ago
Correction: Maximum number of ports is 65535. If this is a typo i would say C, otherwise it would be A
upvoted 1 times
mr_robot
4 years, 11 months ago
You are correct. The answer should be A (-p-). At least the answers from the book are: A. -p- 1-65535 (correct as per the book but, you don't need to specify ports if you use -p-) B. -p ALX C. -p 1-65544 D. -port 1-65534 As per its own definition: "Nmap is a port scanner. To scan for ports, you will want to use the -p <port ranges> (only scan specified ports). This option specifies which ports you want to scan and overrides the default scan. Individual port numbers or ranges are acceptable. Ranges are separated by a hyphen (for example 1–1023). The beginning and/or end values of a range may be omitted, causing nmap to use 1 and 65535, respectively. So, you can specify -p- to scan ports from 1 through 65535."
upvoted 2 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