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
793 stars 190 forks source link

Get-PreferredIPAddress MacOS fix. #185

Closed dwhite9 closed 5 months ago

dwhite9 commented 5 months ago

reverted bash -c option in favor of switching to using full binary paths to prevent "command not found" error from occurring when pulling IP information from MacOS.

Tested on MacOS:

Version: 13.2.1 Build: 22D68