bat: Stop BadRabbit Ransomeware
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
@echo off | |
:: For BadRabbit | |
type NUL > c:\windows\cscc.dat | |
type NUL > c:\windows\infpub.dat | |
icacls "c:\windows\cscc.dat" /inheritance:r /remove Administrators | |
icacls "c:\windows\infpub.dat" /inheritance:r /remove Administrators | |
:: For Petya/NotPetya/SortaPetya | |
type NUL > c:\windows\perfc.dll | |
type NUL > c:\windows\perfc.dat | |
type NUL > c:\windows\perfc | |
icacls "c:\windows\perfc.dll" /inheritance:r /remove Administrators | |
icacls "c:\windows\perfc.dat" /inheritance:r /remove Administrators | |
icacls "c:\windows\perfc" /inheritance:r /remove Administrators | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment