From 4c9dd79cfd424a1c81c80e2f3820a955d36182c9 Mon Sep 17 00:00:00 2001 From: TrimarcJake Date: Tue, 23 Jul 2024 11:27:38 -0500 Subject: [PATCH] #126 removed some debug stuff --- Invoke-Locksmith.ps1 | 3 --- Private/Find-ESC4.ps1 | 3 --- 2 files changed, 6 deletions(-) diff --git a/Invoke-Locksmith.ps1 b/Invoke-Locksmith.ps1 index 95f48fa..b5bac5e 100644 --- a/Invoke-Locksmith.ps1 +++ b/Invoke-Locksmith.ps1 @@ -511,9 +511,6 @@ function Find-ESC4 { ($entry.ActiveDirectoryRights -match $DangerousRights) -and ($entry.ObjectType -notmatch $SafeObjectTypes) ) { - - $BlockFix = [scriptblock]::Create($HereFix) - $Issue = [pscustomobject]@{ Forest = $_.CanonicalName.split('/')[0] Name = $_.Name diff --git a/Private/Find-ESC4.ps1 b/Private/Find-ESC4.ps1 index 176134d..5ecd89e 100644 --- a/Private/Find-ESC4.ps1 +++ b/Private/Find-ESC4.ps1 @@ -83,9 +83,6 @@ ($entry.ActiveDirectoryRights -match $DangerousRights) -and ($entry.ObjectType -notmatch $SafeObjectTypes) ) { - - $BlockFix = [scriptblock]::Create($HereFix) - $Issue = [pscustomobject]@{ Forest = $_.CanonicalName.split('/')[0] Name = $_.Name