Skip to content

Instantly share code, notes, and snippets.

@brakmic
Created May 12, 2017 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brakmic/52d4a224669b2d4fbb6fbdb7f4dcfb71 to your computer and use it in GitHub Desktop.
Save brakmic/52d4a224669b2d4fbb6fbdb7f4dcfb71 to your computer and use it in GitHub Desktop.
stop WannaCry from spreading
# 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);
@brakmic
Copy link
Author

brakmic commented May 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment