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)…
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
- Asqlmap -u www.example.com/?id=1 --search -T user
- Bsqlmap -u www.example.com/?id=1 --dump -D accounts -T users -C cred
- Csqlmap -u www.example.com/?id=1 --tables -D accounts
- Dsqlmap -u www.example.com/?id=1 --schema --current-user --current-db
How the community answered
(56 responses)- A9% (5)
- B4% (2)
- C14% (8)
- D73% (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
Community Discussion
No community discussion yet for this question.