nerdexam
CompTIA

PT0-003 · Question #265

During an assessment, a penetration tester obtains access to a Microsoft SQL server using sqlmap and runs the following command: sql> xp_cmdshell whoami /all Which of the following is the tester tryin

Sign in or unlock PT0-003 to reveal the answer and full explanation for question #265. The question stem and answer options stay visible for context.

Submitted by tom_us· Mar 6, 2026Post-exploitation and Lateral Movement

Question

During an assessment, a penetration tester obtains access to a Microsoft SQL server using sqlmap and runs the following command:

sql> xp_cmdshell whoami /all Which of the following is the tester trying to do?

Options

  • AList database tables
  • BShow logged-in database users
  • CEnumerate privileges
  • DDisplay available SQL commands

Unlock PT0-003 to see the answer

You've previewed enough free PT0-003 questions. Unlock PT0-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Privilege Enumeration#xp_cmdshell#Post-exploitation#SQL Server Exploitation
Full PT0-003 Practice