Kansa
Kansa copied to clipboard
Get-WebrootListing.ps1 output needs to be ASCII encoded
Received an error from Logparser when trying to analyze output from Get-WebrootListing.ps1 module that "some bytes remained undecoded" which blocked results. Re-encoding the output files to ASCII allowed Logparser to read them correctly.
Probably a bug in Logparser, but we can implement a workaround here.
Can you try adding this line before the objects are returned and see if it fixes it? I don't have a web server handy to test against:
$OutputEncoding = [System.Text.Encoding]::ASCII