Skip to content

Instantly share code, notes, and snippets.

@x0rz
Created March 25, 2016 15:07
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save x0rz/6453a2c740e31fba6dad to your computer and use it in GitHub Desktop.
Save x0rz/6453a2c740e31fba6dad to your computer and use it in GitHub Desktop.
# Create registry Key
New-Item -Path "HKCU:\Software\Locky" -ItemType Key
# Setting ACL
$a = whoami
$acl = Get-Acl HKCU:\SOFTWARE\Locky
$rule = New-Object System.Security.AccessControl.RegistryAccessRule ($a,"FullControl","Deny")
$acl.SetAccessRule($rule)
$acl | Set-Acl -Path HKCU:\SOFTWARE\Locky
@x0rz
Copy link
Author

x0rz commented Mar 25, 2016

Prevent the Locky ransomware from being installed on your computer

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