concept xp_cmdshell in category security

appears as: xp_cmdshell
The Art of Network Penetration Testing

This is an excerpt from Manning's book The Art of Network Penetration Testing.

Whether you chose to go down this route will be completely dependent on your engagement scope and your attack objectives. For the sake of the Capsulecorp engagement we will be more interested in the second attack vector, which is to try and gain control of the host-level operating system that the database server is listening on. Because this is a Microsoft SQL server, we need only look to the xp_cmdshell stored procedure to accomplish our goal of running operating system commands and ultimately taking control of this system.  It will be helpful to first have a modest understanding of stored procedures and how they work.