MSSQL Server Agent Jobs for Command Execution

preview_player
Показать описание
A companion video to a recent blog post I wrote. Use native MSSQL Server functionality to achieve command execution via a SQL query, in lieu of using xp_cmdshell. Can also be used to schedule persistent command execution, and abused to access other SQL servers (if the account running MSSQL Server Agent has access to them, or if you have ascertained credentials already).

In the video I use an example of a SQL injection condition that also abuses this method to achieve a remote command and control session on a target system.

Here is SQL syntax for creating and running a job, in a one liner for SQLi delviery:
Рекомендации по теме