nerdexam
CompTIA

PT0-002 · Question #506

A penetration tester gained access to one of the target company's servers. During the enumeration phase, the penetration tester lists the bash history and observes the following row: curl -k…

The correct answer is C. Attempt to read email. Given the plaintext credentials for a mail server in the bash history, the penetration tester should next attempt to read email using those compromised credentials.

Post-exploitation and lateral movement

Question

A penetration tester gained access to one of the target company's servers. During the enumeration phase, the penetration tester lists the bash history and observes the following row:

curl -k 'imaps://10.12.14.121' --user jsmith:Blu3moon -v Which of the following steps should the penetration tester take next?

Options

  • ABrute force all mail users.
  • BEnumerate mall server users.
  • CAttempt to read email.
  • DDownload hashes.

How the community answered

(51 responses)
  • A
    10% (5)
  • B
    8% (4)
  • C
    80% (41)
  • D
    2% (1)

Why each option

Given the plaintext credentials for a mail server in the bash history, the penetration tester should next attempt to read email using those compromised credentials.

ABrute force all mail users.

Brute forcing all mail users is unnecessary and inefficient when valid credentials for one user (jsmith) have already been discovered.

BEnumerate mall server users.

While enumerating mail server users could be a future step, attempting to read email with the already found credentials is a more immediate and impactful action, as it provides direct access to sensitive information.

CAttempt to read email.Correct

The bash history reveals a 'curl' command to an IMAPS server with a username ('jsmith') and a plaintext password ('Blu3moon'). This directly provides valid credentials for accessing the mail server. The logical next step for the penetration tester is to use these credentials to log into the IMAPS server and attempt to read emails, which often contain sensitive information.

DDownload hashes.

The command provided does not involve downloading hashes; it shows an attempt to access an IMAPS server using a username and plaintext password. While hashes might be present elsewhere, this specific discovery points to immediate email access.

Concept tested: Post-compromise enumeration and lateral movement

Topics

#Credential discovery#Bash history analysis#IMAPS exploitation#Post-exploitation

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice