https://www.hackingarticles.in/mssql-for-pentester-command-execution-with-ole-automation/
MSSQL for Pentester: Command Execution with Ole Automation