sans-blue-team / DeepBlueCLI

GNU General Public License v3.0
2.16k stars 352 forks source link

ConvertTo-Json - login failures not output correctly #20

Open dhammond22222 opened 3 years ago

dhammond22222 commented 3 years ago

Hello,

Was working on a lab and came across an issue regarding outputting to JSON. Specifically when a password spray attack is logged.

When running the command:.\DeepBlue.ps1 | ConvertTo-JSON , the output for each user appears to be overwritten by the password spray totals.

deepbluecli_json_output_overwritten

Once this if condition is hit, the original $obj contents appear to be overwritten when invoking the JSON output.

https://github.com/sans-blue-team/DeepBlueCLI/blob/master/DeepBlue.ps1#L564