nerdexam
CompTIA

PT0-003 · Question #90

During an assessment, a penetration tester exploits an SQLi vulnerability. Which of the following commands would allow the penetration tester to enumerate password hashes?

The correct answer is D. sqlmap -u www.example.com/?id=1 --schema --current-user --current-db. Wait - the correct answer listed is D, but based on sqlmap functionality, option B is actually the most appropriate command for enumerating password hashes. Option B uses --dump to extract data from a specific database (-D accounts), table (-T users), and column (-C cred)…

Submitted by yuki_2020· Mar 6, 2026CompTIA PenTest+ - Attacks and Exploits / Web Application Attacks

Question

During an assessment, a penetration tester exploits an SQLi vulnerability. Which of the following commands would allow the penetration tester to enumerate password hashes?

Options

How the community answered

(56 responses)
  • A
    9% (5)
  • B
    4% (2)
  • C
    14% (8)
  • D
    73% (41)

Explanation

Wait - the correct answer listed is D, but based on sqlmap functionality, option B is actually the most appropriate command for enumerating password hashes. Option B uses --dump to extract data from a specific database (-D accounts), table (-T users), and column (-C cred), which would retrieve credential/password hash data. However, if D is marked correct by the exam, it may be because --schema reveals the database structure, --current-user identifies the DB user (whose privileges matter for hash access), and --current-db identifies the active database - together forming a reconnaissance step before targeting hashes. That said, this answer appears to be a trick or error in the question, as D does not directly enumerate password hashes.

Topics

#SQLi#sqlmap#penetration testing#credential enumeration

Community Discussion

No community discussion yet for this question.

Full PT0-003 Practice