Created
August 8, 2022 15:52
-
-
Save edygert/96f8dd075aa50121b19efaf34e57a7af to your computer and use it in GitHub Desktop.
Remove duplicates from AMSI output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Seen = @{} | |
foreach ($elem in $AMSIScanEvents) { | |
if (-not $Seen.ContainsKey($elem.Hash)) { | |
$elem | |
$Seen[$elem.Hash] = "" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment