From 33d20ffb7c0d7b3df1cdb847f211d73c7be38fe4 Mon Sep 17 00:00:00 2001 From: san-gwea <57334373+san-gwea@users.noreply.github.com> Date: Thu, 14 Nov 2019 22:59:13 -0600 Subject: [PATCH] show executor and privilege requirement (#662) --- .../Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 b/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 index fc96d55d..d53a936a 100644 --- a/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 +++ b/execution-frameworks/Invoke-AtomicRedTeam/Invoke-AtomicRedTeam/Public/Invoke-AtomicTest.ps1 @@ -233,6 +233,9 @@ function Invoke-AtomicTest { if ($ShowDetails) { if ($null -ne $finalCommand){ + $executor_name = $test.executor.name + Write-Information -MessageData "executor": $executor_name -Tags 'Name' + Write-Information -MessageData $test.executor.elevation_required -Tags 'Name' Write-Information -MessageData $finalCommand -Tags 'Command' } }