diff --git a/atomics/Indexes/index.yaml b/atomics/Indexes/index.yaml index 83c99f22..fcd2b8c1 100644 --- a/atomics/Indexes/index.yaml +++ b/atomics/Indexes/index.yaml @@ -89210,7 +89210,7 @@ credential-access: - description: ".Net v5 must be installed\n" prereq_command: | $exePath = resolve-path "$env:ProgramFiles\dotnet\shared\Microsoft.NETCore.App\5*\createdump.exe" - if (Test-Path $exePath) {exit 0} else {exit 1} + if ($exePath -and (Test-Path $exePath)) {exit 0} else {exit 1} get_prereq_command: 'winget install Microsoft.DotNet.DesktopRuntime.5 --accept-source-agreements --accept-package-agreements --silent diff --git a/atomics/Indexes/windows-index.yaml b/atomics/Indexes/windows-index.yaml index b87b2728..09f6f50c 100644 --- a/atomics/Indexes/windows-index.yaml +++ b/atomics/Indexes/windows-index.yaml @@ -77469,7 +77469,7 @@ credential-access: - description: ".Net v5 must be installed\n" prereq_command: | $exePath = resolve-path "$env:ProgramFiles\dotnet\shared\Microsoft.NETCore.App\5*\createdump.exe" - if (Test-Path $exePath) {exit 0} else {exit 1} + if ($exePath -and (Test-Path $exePath)) {exit 0} else {exit 1} get_prereq_command: 'winget install Microsoft.DotNet.DesktopRuntime.5 --accept-source-agreements --accept-package-agreements --silent diff --git a/atomics/T1003.001/T1003.001.md b/atomics/T1003.001/T1003.001.md index b64a1d16..065f71b8 100644 --- a/atomics/T1003.001/T1003.001.md +++ b/atomics/T1003.001/T1003.001.md @@ -579,7 +579,7 @@ Remove-Item $env:Temp\dotnet-lsass.dmp -ErrorAction Ignore ##### Check Prereq Commands: ```powershell $exePath = resolve-path "$env:ProgramFiles\dotnet\shared\Microsoft.NETCore.App\5*\createdump.exe" -if (Test-Path $exePath) {exit 0} else {exit 1} +if ($exePath -and (Test-Path $exePath)) {exit 0} else {exit 1} ``` ##### Get Prereq Commands: ```powershell