Update 1.1. RansomwareSimulationCleanup
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
REM #########################################################################################################################
|
||||
REM ################ This script was created by github.com/MarkCyber ############
|
||||
REM ################ This is a follow-up script to the RansomwareSimulation ############
|
||||
REM ################ This script is to revert all changes from the RansomwareSimulation script ############
|
||||
REM #########################################################################################################################
|
||||
REM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
REM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
REM %%%%%%%%%%%%% This script was created by github.com/MarkCyber %%%%%%%%%%%%%%
|
||||
REM %%%%%%%%%%%%% This is a follow-up script to the RansomwareSimulation %%%%%%%%%%%%%%
|
||||
REM %%%%%%%%%%%%% Running this renames all extensions back to their original, full path- making them usable %%%%%%%%%%%%%%
|
||||
REM %%%%%%%%%%%%% This can be ran multiple times if necessary %%%%%%%%%%%%%%
|
||||
REM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
REM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
DELAY 1000
|
||||
GUI r
|
||||
DELAY 2000
|
||||
STRING powershell
|
||||
ENTER
|
||||
REM increased delays to make sure each command can go through even on slower computers
|
||||
DELAY 6000
|
||||
|
||||
REM Define the locations using correct SpecialFolder enumerations
|
||||
STRING $folders = @(
|
||||
DELAY 1000
|
||||
@@ -35,7 +38,6 @@ STRING )
|
||||
DELAY 1000
|
||||
ENTER
|
||||
DELAY 3000
|
||||
|
||||
REM Iterate over each location
|
||||
STRING foreach ($folder in $folders) {
|
||||
DELAY 1000
|
||||
@@ -45,7 +47,6 @@ STRING $path = [Environment]::GetFolderPath($folder)
|
||||
DELAY 1000
|
||||
ENTER
|
||||
DELAY 4000
|
||||
|
||||
REM Get all .locked files in the path and rename them back
|
||||
STRING Get-ChildItem -Path $path -File | Where-Object { $_.Name.EndsWith('.locked') } | ForEach-Object { Rename-Item -Path $_.FullName -NewName ($_.Name -replace '\.locked$', '') }
|
||||
DELAY 2000
|
||||
@@ -55,7 +56,6 @@ STRING }
|
||||
DELAY 1000
|
||||
ENTER
|
||||
DELAY 4000
|
||||
|
||||
STRING exit
|
||||
DELAY 1000
|
||||
ENTER
|
||||
|
||||
Reference in New Issue
Block a user