nerdexam
CompTIA

PT0-002 · Question #70

A penetration tester wrote the following script to be used in one engagement: Which of the following actions will this script perform?

The correct answer is A. Look for open ports. The last print statement gives away the answer. It explicitly shows that they're returning the ports found to be open.

Reconnaissance and enumeration

Question

A penetration tester wrote the following script to be used in one engagement:

Which of the following actions will this script perform?

Exhibit

PT0-002 question #70 exhibit

Options

  • ALook for open ports.
  • BListen for a reverse shell.
  • CAttempt to flood open ports.
  • DCreate an encrypted tunnel.

How the community answered

(50 responses)
  • A
    90% (45)
  • B
    2% (1)
  • C
    6% (3)
  • D
    2% (1)

Explanation

The last print statement gives away the answer. It explicitly shows that they're returning the ports found to be open.

Topics

#Port scanning#Network reconnaissance#Script analysis#Penetration testing tools

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice