标题: [其他] 批处理创建只读文件预防比特币勒索病毒Petya [打印本页]
作者: ShowCode 时间: 2017-6-29 11:09 标题: 批处理创建只读文件预防比特币勒索病毒Petya
- @echo off
- set file1=%systemroot%\perfc
- set file2=%systemroot%\perfc.dll
- set file3=%systemroot%\perfc.dat
- if not exist %file1% (
- type nul > %file1%
- ) else (
- attrib +R %file1%
- )
- if not exist %file2% (
- type nul > %file2%
- ) else (
- attrib +R %file2%
- )
- if not exist %file3% (
- type nul > %file3%
- ) else (
- attrib +R %file3%
- )
复制代码
提醒,请及时安装Windows补丁。
https://support.microsoft.com/en-us/help/4025686/microsoft-security-advisory-4025685-guidance-for-supported-platforms
https://support.microsoft.com/en-us/help/4025687/microsoft-security-advisory-4025685-guidance-for-older-platforms
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |