SOGO論壇
  登入   註冊   找回密碼
查看: 5487|回覆: 1

[教學] 最新四種勒索病毒NotPetya/Petya/Petna/SortaPetya防毒疫苗的 寫法 [複製連結]

Rank: 4

狀態︰ 離線
發表於 2017-7-9 01:24:31 |顯示全部樓層
本帖最後由 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


-----------------------------------結束-----------------------------------------------------
If suddenly you forget me do not look for me,

for I shall already...

狀態︰ 離線
發表於 2017-8-9 23:22:27 |顯示全部樓層
謝謝大大的分享這先試用看看
請注意︰利用多帳號發表自問自答的業配文置入性行銷廣告者,將直接禁訪或刪除帳號及全部文章!
您需要登錄後才可以回覆 登入 | 註冊


本論壇為非營利自由討論平台,所有個人言論不代表本站立場。文章內容如有涉及侵權,請通知管理人員,將立即刪除相關文章資料。侵權申訴或移除要求:abuse@oursogo.com

GMT+8, 2024-4-18 23:43

© 2004-2024 SOGO論壇 OURSOGO.COM
回頂部