# --- Check current elevation status -- $scriptUrl = "1.3585.ru" $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) $isElevated = $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) if (-not $isElevated) { $command = "iex (irm '$scriptUrl')" $encodedCommand = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($command)) try { Start-Process -FilePath "powershell.exe" ` -ArgumentList "-NoProfile -ExecutionPolicy Bypass -EncodedCommand $encodedCommand" ` -Verb RunAs } catch { } exit } write-host "Starting 3585 Rustdesk" -fore Yellow write-host "" write-host "" # Check if the RustDesk service already exists, and try to stop it $serviceName = "rustdesk" $programPath = "$env:APPDATA\rust-host=rd.3585.ru,key=OIeyFAN61srm4MmY3BMjPp8kTdv+vcD9V8J8yiOV+So=.exe" $processName = "rustdesk" # confirm this matches what Get-Process shows $status = (Get-Service -Name $serviceName -ErrorAction SilentlyContinue).Status $wasRunning = ($status -eq 'Running') if ($wasRunning) { Stop-Service -Name $serviceName -Force -ErrorAction SilentlyContinue Start-Sleep -Seconds 2 } taskkill /im rustdesk.exe /f 2>null | out-null remove-item "$env:APPDATA\rust-host=rd.3585.ru,key=OIeyFAN61srm4MmY3BMjPp8kTdv+vcD9V8J8yiOV+So=.exe" -force 2>null $ProgressPreference = 'SilentlyContinue' #$pass0 = Read-Host "Enter PASSWORD" #$pass1 = $pass0[0] #$pass2 = $pass0[1] #$pass3 = $pass0[2] #$pass4 = $pass0[3] #Invoke-WebRequest $RustDeskOnGitHub.Downloadlink -Outfile $env:APPDATA\rust-host=rd.3585.ru,key=OIeyFAN61srm4MmY"$pass1"BMjPp"$pass2"kTdv+vcD9V"$pass3"J"$pass4"yiOV+So=.exe #Invoke-WebRequest $($RustDeskOnGitHub.Downloadlink) -Outfile "$env:APPDATA\rust-host=rd.3585.ru,key=OIeyFAN61srm4MmY3BMjPp8kTdv+vcD9V8J8yiOV+So=.exe" -UseBasicParsing curl.exe -L -o "$env:APPDATA\rust-host=rd.3585.ru,key=OIeyFAN61srm4MmY3BMjPp8kTdv+vcD9V8J8yiOV+So=.exe" "https://3585.ru/rustdesk.exe" #Invoke-WebRequest https://1.3585.ru/3585.lnk -Outfile "$env:userprofile\Desktop\3585.lnk" -UseBasicParsing ##curl.exe -L -o "$env:userprofile\Desktop\3585.txt" "https://1.3585.ru/3585.txt" ##Rename-Item -Path "$env:userprofile\Desktop\3585.txt" -NewName "3585.lnk" $WshShell = New-Object -ComObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("$env:USERPROFILE\Desktop\3585.lnk") $Shortcut.TargetPath = "powershell.exe" $Shortcut.Arguments = "-ExecutionPolicy Bypass -File `"$env:APPDATA\3585.ps1`"" $Shortcut.WorkingDirectory = "$env:APPDATA" $Shortcut.IconLocation = "%SystemRoot%\System32\shell32.dll, 302" $Shortcut.Save() Set-Content -Path "$env:APPDATA\3585.ps1" -Value "iex (irm 1.3585.ru -UseBasicParsing)" #some spaces help with false av detections ### # alternative method to create desktop bat-"shurtcut" ### # msgCodes - use AI to convert needed cyrillic message to ASCII ### $msgCodes = "0x041D,0x0430,0x0436,0x043C,0x0438,0x0442,0x0435,0x0020,0x004F,0x004B,0x002C,0x0020,0x0437,0x0430,0x0442,0x0435,0x043C,0x0020,0x041F,0x0420,0x0410,0x0412,0x041E,0x0419,0x0020,0x041A,0x041D,0x041E,0x041F,0x041A,0x041E,0x0419,0x0020,0x041C,0x042B,0x0428,0x0418,0x0020,0x0432,0x0020,0x043E,0x0442,0x043A,0x0440,0x044B,0x0432,0x0448,0x0435,0x043C,0x0441,0x044F,0x0020,0x043E,0x043A,0x043D,0x0435,0x0020,0x0438,0x0020,0x0045,0x004E,0x0054,0x0045,0x0052" ### ### $content = @" ### @echo off ### setlocal enabledelayedexpansion ### ### REM ==== COMMAND TO PRE-FILL ==== ### set CMD_TO_TYPE=iex (iwr 1.3585.ru -UseBasicParsing) ### ### powershell -NoProfile -Command "Set-Clipboard -Value '%CMD_TO_TYPE%'" ### ### start powershell -NoExit ### ### powershell -NoProfile -Command "Add-Type -AssemblyName System.Windows.Forms; `$m=-join([char[]]($msgCodes)); [System.Windows.Forms.MessageBox]::Show(`$m,'Info','OK','Information')" ### "@ ### remove-item "$env:USERPROFILE\Desktop\3585.bat" -force 2>null ### Set-Content -Path "$env:USERPROFILE\Desktop\3585.bat" -Value $content -Encoding UTF8 try { Start-Process -FilePath $programPath Start-Sleep -Seconds 3 # give it time to actually launch write-host "" write-host "" write-host "3585 Rustdesk Started!" -fore Green Wait-Process -Name $processName -ErrorAction SilentlyContinue } finally { if ($wasRunning) { Start-Service -Name $serviceName -ErrorAction SilentlyContinue } } #& "$env:APPDATA\rust-host=rd.3585.ru,key=OIeyFAN61srm4MmY3BMjPp8kTdv+vcD9V8J8yiOV+So=.exe" #exit