- 註冊時間
- 2010-8-15
- 最後登錄
- 2017-7-31
- 主題
- 查看
- 積分
- 154
- 閱讀權限
- 40
- 文章
- 285
- 相冊
- 0
- 日誌
- 0
狀態︰
離線
|
本帖最後由 Zigzap 於 2017-7-9 01:25 編輯
最新四種勒索病毒NotPetya/Petya/Petna/SortaPetya防毒疫苗的 寫法 :
這四種已經有疫苗了NotPetya/Petya/Petna/SortaPetya,打開記事本 ;
把下列代碼貼上儲存為 ((疫苗.BAT))批次檔 :
@echo off
REM Administrative check from here: http://stackoverflow.com/questio ... ck-for-admin-rights
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
-----------------------------------結束----------------------------------------------------- |
|