Board logo

标题: [其他] 批处理创建只读文件预防比特币勒索病毒Petya [打印本页]

作者: ShowCode    时间: 2017-6-29 11:09     标题: 批处理创建只读文件预防比特币勒索病毒Petya

  1. @echo off
  2. set file1=%systemroot%\perfc
  3. set file2=%systemroot%\perfc.dll
  4. set file3=%systemroot%\perfc.dat
  5. if not exist %file1% (
  6.     type nul > %file1%
  7. ) else (
  8.     attrib +R %file1%
  9. )
  10. if not exist %file2% (
  11.     type nul > %file2%
  12. ) else (
  13.     attrib +R %file2%
  14. )
  15. if not exist %file3% (
  16.     type nul > %file3%
  17. ) else (
  18.     attrib +R %file3%
  19. )
复制代码
提醒,请及时安装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