Skip to content

Commit 8f6be81

Browse files
authored
Update PowerUpSQL.ps1
Fixed filter bug in Get-SqlTable function.
1 parent c989c71 commit 8f6be81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PowerUpSQL.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
File: PowerUpSQL.ps1
44
Author: Scott Sutherland (@_nullbind), NetSPI - 2023
55
Major Contributors: Antti Rantasaari and Eric Gruber
6-
Version: 1.119
6+
Version: 1.120
77
Description: PowerUpSQL is a PowerShell toolkit for attacking SQL Server.
88
License: BSD 3-Clause
99
Required Dependencies: PowerShell v.2
@@ -4660,7 +4660,7 @@ Function Get-SQLTable
46604660
# Setup table filter
46614661
if($TableName)
46624662
{
4663-
$TableFilter = " WHERE TABLE_NAME like '%$TableName%'"
4663+
$TableFilter = " WHERE t.TABLE_NAME like '%$TableName%'"
46644664
}
46654665
else
46664666
{

0 commit comments

Comments
 (0)