From 8f6be811a9b6c9f1ad5fe1480bd4f555d3213d05 Mon Sep 17 00:00:00 2001 From: Scott Sutherland Date: Mon, 20 May 2024 11:48:34 -0500 Subject: [PATCH] Update PowerUpSQL.ps1 Fixed filter bug in Get-SqlTable function. --- PowerUpSQL.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerUpSQL.ps1 b/PowerUpSQL.ps1 index e60be38..3749450 100644 --- a/PowerUpSQL.ps1 +++ b/PowerUpSQL.ps1 @@ -3,7 +3,7 @@ File: PowerUpSQL.ps1 Author: Scott Sutherland (@_nullbind), NetSPI - 2023 Major Contributors: Antti Rantasaari and Eric Gruber - Version: 1.119 + Version: 1.120 Description: PowerUpSQL is a PowerShell toolkit for attacking SQL Server. License: BSD 3-Clause Required Dependencies: PowerShell v.2 @@ -4660,7 +4660,7 @@ Function Get-SQLTable # Setup table filter if($TableName) { - $TableFilter = " WHERE TABLE_NAME like '%$TableName%'" + $TableFilter = " WHERE t.TABLE_NAME like '%$TableName%'" } else {