From 9fddf9f1527f2f5ee6194d347459b682eb4d108e Mon Sep 17 00:00:00 2001 From: clr2of8 Date: Thu, 11 Jul 2024 16:01:50 -0500 Subject: [PATCH] add logfile name to runner config --- Public/config.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Public/config.ps1 b/Public/config.ps1 index 2a92005..63fc5ae 100644 --- a/Public/config.ps1 +++ b/Public/config.ps1 @@ -34,6 +34,7 @@ $artConfig = [PSCustomObject]@{ # [optional] logfile filename configs logFolder = "AtomicRunner-Logs" timeLocal = (Get-Date(get-date) -uformat "%Y-%m-%d").ToString() + logFileName = "$($artConfig.timeLocal)`_$($artConfig.basehostname)-ExecLog.csv" # amsi bypass script block (applies to Windows only) absb = $null @@ -95,7 +96,7 @@ $scriptParam = @{ MemberType = "ScriptProperty" InputObject = $artConfig Name = "execLogPath" - Value = { Join-Path $artConfig.atomicLogsPath "$($artConfig.timeLocal)`_$($artConfig.basehostname)-ExecLog.csv" } + Value = { Join-Path $artConfig.atomicLogsPath $artConfig.logFileName } } Add-Member @scriptParam