Created
May 12, 2017 22:57
-
-
Save brakmic/52d4a224669b2d4fbb6fbdb7f4dcfb71 to your computer and use it in GitHub Desktop.
stop WannaCry from spreading
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
# open powershell and execute this file | |
# let the window open | |
# if the script won't start because of local execution policy restrictions you can use "Set-Execution-Policy Bypass" | |
$createdNew = $False; | |
$mutex = New-Object -TypeName System.Threading.Mutex($true, "MsWinZonesCacheCounterMutexA", [ref]$createdNew); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original code: https://gist.github.com/N3mes1s/afda0da98f6a0c63ec4a3d296d399636