最新6种勒索病毒NotPetya/Petya/Petna/SortaPetya/Petwap/GEl防毒疫苗的写法

Home Home
引用 | 编辑 Zigzap
2017-07-09 01:15
楼主
推文 x0
这四种已经有疫苗了NotPetya/Petya/Petna/SortaPetya/Petwap/GoldenEyes,打开记事本 ;

把下列代码贴上储存为  (( 疫苗.BAT ))批次档 :

复制程式
@echo off
REM Administrative check from here: [b]这里www.stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights[/b]


REM Vaccination discovered by twitter.com/0xAmit/status/879778335286452224

REM Batch file created by Lawrence Abrams of BleepingComputer.com. @bleepincomputer@lawrenceabrams

echo Administrative permissions required.
 Detecting permissions...
echo.
              
net session >nul 2>&1
if %errorLevel% == 0
 (
        if exist C:\Windows\perfc
 (
               
echo Computer already vaccinated for NotPetya/Petya/Petna/SortaPetya.
        
echo.
       
) else
 (
              
echo This is a NotPetya/Petya/Petna/SortaPetya Vaccination file. Do not remove as it protects you from being encrypted by Petya. 
> C:\Windows\perfc
               
echo This is a NotPetya/Petya/Petna/SortaPetya Vaccination file. Do not remove as it protects you from being encrypted by Petya. 

> C:\Windows\perfc.dll
 
       
echo This is a NotPetya/Petya/Petna/SortaPetya Vaccination file. Do not remove as it protects you from being encrypted by Petya. 

> C:\Windows\perfc.dat
                
attrib +R C:\Windows\perfc
             
attrib +R C:\Windows\perfc.dll
           
attrib +R C:\Windows\perfc.dat
              
echo Computer vaccinated for current version of NotPetya/Petya/Petna/SortaPetya.
            
echo.
)
)
 else
 (
        
echo Failure: You must run this batch file as Administrator.
)
 pause

---------------------------------------------------结束-------------------------------------------------------------------

献花 x0
引用 | 编辑 Mar09411
2017-07-15 07:01
1楼
  
开启后会怎样?@@

献花 x0
引用 | 编辑 Zigzap
2017-07-18 19:36
2楼
  
会产生3个perfc perfc.dll perfc.dat唯读档
在C:\Windows\ 目录下......就不会中毒了 表情

献花 x0