redcanaryco / invoke-atomicredteam

Invoke-AtomicRedTeam is a PowerShell module to execute tests as defined in the [atomics folder](https://github.com/redcanaryco/atomic-red-team/tree/master/atomics) of Red Canary's Atomic Red Team project.
MIT License
805 stars 190 forks source link

check if stdout or stderror are not $null #129

Closed Retrospected closed 1 year ago

Retrospected commented 1 year ago

In some cases the logger encounters stdout or stderror being $null. Trying to perform toString throws an exception. I have added a check to verify that these values are not $null.