ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    A vaccination for Petya

    Scheduled Pinned Locked Moved IT Discussion
    ransomwarepetya
    3 Posts 2 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      Worth reading, might even be worth doing if you have any extra concerns.

      A vaccine of sorts for the newest Ransomware.

      vhinzsanchezV 1 Reply Last reply Reply Quote 4
      • vhinzsanchezV
        vhinzsanchez @DustinB3403
        last edited by

        @DustinB3403 Thanks! Already applying via GPO

        1 Reply Last reply Reply Quote 2
        • DustinB3403D
          DustinB3403
          last edited by

          Here is a batch file for anyone who wants to do this "lazily"

          @echo off
          REM Vaccince for NotPetya/Petya/Petna/SortaPetya.
          
          
          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
          
          1 Reply Last reply Reply Quote 2
          • 1 / 1
          • First post
            Last post