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
818 stars 194 forks source link

Issue#40 stdout/stderr should be returned to the caller. #41

Closed ironmanstittsville closed 3 years ago

ironmanstittsville commented 4 years ago

This fix is meant to fix Issue #40 related to the stdout/stderr not being returned to the caller of Invoke-AtomicTest. With this fix, the call can be made and the output can be redirected into a log file for posterity 8-D

NOTE: this fix adds a command line option to the Invoke-AtomicTest called "-Interactive" that will allow the caller to interact with the test command (instead of all of the stdout/stderr flowing to a file without the caller seeing it). This fix has been tested but not code reviewed. Please weigh in on this. I've got an environment setup to exercise this change for debugging if you have an problems. That being said, I haven't used the Invoke system to run remote test commands so I haven't done any testing with that part of the system.

There is probably some documentation that I should update for this. Can I get a pointer to where I should do that?