Skip to content
← LibraryTechnique entry
AD-MSSQL-XPCMDExecution

MSSQL xp_cmdshell

Enable xp_cmdshell on a SQL server you have sysadmin on — run shell commands as the service account.

§ Where this technique fits

AD-MSSQL-XPCMD is catalogued under the Execution tactic of the offensive-security kill-chain. It appears in 1 approved dossier in the registry, typically at step 4 on average.

§ Dossiers chaining this technique

§ What commonly comes next

  1. 01seen 1×