nerdexam
CompTIA

PT0-002 · Question #109

A penetration tester runs a scan against a server and obtains the following output: Which of the following command sequences should the penetration tester try NEXT?

The correct answer is A. ftp 192.168.53.23. Given that 'A' is the correct answer, the prior scan output must have indicated an open FTP service on the target, making direct interaction with the service the logical next step.

Attacks and Exploits

Question

A penetration tester runs a scan against a server and obtains the following output:

Which of the following command sequences should the penetration tester try NEXT?

Exhibit

PT0-002 question #109 exhibit

Options

  • Aftp 192.168.53.23
  • Bsmbclient \\WEB3\IPC$ -I 192.168.53.23 -U guest
  • Cncrack -u Administrator -P 15worst_passwords.txt -p rdp 192.168.53.23
  • Dcurl -X TRACE https://192.168.53.23:8443/index.aspx
  • Enmap --script vuln -sV 192.168.53.23

How the community answered

(22 responses)
  • A
    77% (17)
  • B
    5% (1)
  • D
    9% (2)
  • E
    9% (2)

Why each option

Given that 'A' is the correct answer, the prior scan output must have indicated an open FTP service on the target, making direct interaction with the service the logical next step.

Aftp 192.168.53.23Correct

If the preceding scan results identified an open FTP service (typically on port 21) on the target IP, the immediate next action for a penetration tester is to initiate a connection using the 'ftp' client to explore the service and identify potential vulnerabilities.

Bsmbclient \\\\WEB3\\IPC$ -I 192.168.53.23 -U guest

Connecting to an SMB share with 'smbclient' would be appropriate if SMB (port 445) was identified as an open and interesting service, which is not indicated as the primary next step here.

Cncrack -u Administrator -P 15worst_passwords.txt -p rdp 192.168.53.23

Using 'ncrack' to brute force RDP implies RDP (port 3389) was identified and deemed suitable for brute-forcing, but this is not the implied next step over direct service interaction.

Dcurl -X TRACE https://192.168.53.23:8443/index.aspx

Attempting an HTTP TRACE method with 'curl' targets a web service, which may or may not be the primary next step based on the unspecified initial scan output.

Enmap --script vuln -sV 192.168.53.23

Running another 'nmap' scan with vulnerability scripts is a reconnaissance activity, but the question asks what to 'try NEXT' after a scan, implying an attempt to interact with a discovered service.

Concept tested: Initial service interaction post-scanning

Source: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

Topics

#FTP#Initial Access#Service Interaction#Penetration Testing Methodology

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice