Grepping Through PowerView Output

Carrie Roberts//*

Have you found yourself trying to Grep through PowerView output, or any PowerShell output for that matter, and find that it returns no results for text you know is in the file? PowerShell default output encoding is UTF-16, causing unexpected Grep results.

The fix is easy, just use the built-in Linux/OS X tool iconv as follows:

Make a mental note and log this away for the next time Grep is making you scratch your head!


*Carrie is one of our favorite BHIS blog post guests!

You can learn more from Carrie in her classes!

Check them out here:

Attack Emulation Tools: Atomic Red Team, CALDERA and More 

PowerShell for InfoSec

Available live/virtual and on-demand!