exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 89 discussion

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

A penetration tester writes the following script:

Which of the following is the tester performing?

  • A. Searching for service vulnerabilities
  • B. Trying to recover a lost bind shell
  • C. Building a reverse shell listening on specified ports
  • D. Scanning a network for specific open ports
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
som3onenooned1
Highly Voted 1 year ago
Selected Answer: D
-z zero-I/O mode [used for scanning] -v verbose example output of script: 10.0.0.1: inverse host lookup failed: Unknown host (UNKNOWN) [10.0.0.1] 22 (ssh) open (UNKNOWN) [10.0.0.1] 23 (telnet) : Connection timed out https://unix.stackexchange.com/questions/589561/what-is-nc-z-used-for
upvoted 6 times
...
RRabbit_111
Highly Voted 9 months, 3 weeks ago
D. Scanning a network for specific open ports The script is using the command "nc -zv" which stands for "netcat -z -v" which is used to check if a specific port is open on a remote IP address. The script is looping through a range of IP addresses on the 10.100.100 network and attempting to connect to the specified ports (22, 23, 80, and 443) on each IP. This is a method of scanning a network to check which specific ports are open, also known as port scanning. The script is not performing any action related to service vulnerabilities or shell recovery/creation.
upvoted 5 times
...
cy_analyst
Most Recent 7 months ago
Selected Answer: D
"-z": Specifies that nc should not send any data to the target host, but instead just check if the port is open. This is also known as a "zero I/O mode" scan.
upvoted 1 times
...
lifehacker0777
7 months, 1 week ago
Selected Answer: D
D. Scanning a network for specific open ports. The script is using the nc (netcat) command with the -zv options to scan a range of IP addresses (10.100.100.1-10.100.100.254) and specific ports (22, 23, 80, 443) to check for open ports.
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