From 0f10747ce68cc43b0be27e52a3edf89149633a85 Mon Sep 17 00:00:00 2001 From: "@iwillkeepwatch" Date: Fri, 3 Aug 2018 11:30:39 -0400 Subject: [PATCH] Updated SQL PS binaries --- OtherMSBinaries/Sqlps.yml | 13 ++++++++++--- OtherMSBinaries/Sqltoolsps.yml | 7 +++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/OtherMSBinaries/Sqlps.yml b/OtherMSBinaries/Sqlps.yml index 3fd5a0b..67ad310 100644 --- a/OtherMSBinaries/Sqlps.yml +++ b/OtherMSBinaries/Sqlps.yml @@ -6,11 +6,18 @@ Created: '2018-05-25' Categories: [] Commands: - Command: Sqlps.exe -noprofile - Description: Drop into a SQL Server PowerShell console without Module and ScriptBlock Logging. + Description: Run a SQL Server PowerShell mini-console without Module and ScriptBlock Logging. Full Path: - - C:\Program files (x86\Microsoft SQL Server\100\Tools\Binn\sqlps.exe + - C:\Program files (x86)\Microsoft SQL Server\100\Tools\Binn\sqlps.exe (SQL Server 2008 R2 - PS version 2.0) + - C:\Program files (x86)\Microsoft SQL Server\110\Tools\Binn\sqlps.exe (SQL Server 2012 - PS version 2.0) + - C:\Program files (x86)\Microsoft SQL Server\120\Tools\Binn\sqlps.exe (SQL Server 2014 - PS version 4.0) + - C:\Program files (x86)\Microsoft SQL Server\130\Tools\Binn\sqlps.exe (SQL Server 2016 - PS version 4.0) Code Sample: [] Detection: [] Resources: - https://twitter.com/bryon_/status/975835709587075072 -Notes: Thanks to Bryon - @bryon_ + - https://twitter.com/_castleinthesky/status/101232247501798196 + - https://docs.microsoft.com/en-us/sql/powershell/sql-server-powershell?view=sql-server-2017 +Notes: + - Thanks to Bryon - @bryon_ + - Replaced by SQLToolsPS.exe in SQL Server 2016, but will be included with installation for compatability reasons diff --git a/OtherMSBinaries/Sqltoolsps.yml b/OtherMSBinaries/Sqltoolsps.yml index 541dc2d..31ccc73 100644 --- a/OtherMSBinaries/Sqltoolsps.yml +++ b/OtherMSBinaries/Sqltoolsps.yml @@ -6,11 +6,14 @@ Created: '2018-05-25' Categories: [] Commands: - Command: SQLToolsPS.exe -noprofile -command Start-Process calc.exe - Description: Run PowerShell scripts and commands. + Description: Run a SQL Server PowerShell mini-console without Module and ScriptBlock Logging. Full Path: - C:\Program files (x86)\Microsoft SQL Server\130\Tools\Binn\sqlps.exe Code Sample: [] Detection: [] Resources: - https://twitter.com/pabraeken/status/993298228840992768 -Notes: Thanks to Pierre-Alexandre Braeken - @pabraeken + - https://docs.microsoft.com/en-us/sql/powershell/sql-server-powershell?view=sql-server-2017 +Notes: + - Thanks to Pierre-Alexandre Braeken - @pabraeken + - Successor to sqlps.exe in SQL Server 2016+.