From 33ed90b85c7c92dbd3de4164b6811ce28ec302a3 Mon Sep 17 00:00:00 2001 From: "Satur@it-depot.ru" Date: Tue, 18 Feb 2025 17:28:53 +0300 Subject: [PATCH] fix --- RustInstall.ps1 | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/RustInstall.ps1 b/RustInstall.ps1 index 1089a40..7a7ac81 100644 --- a/RustInstall.ps1 +++ b/RustInstall.ps1 @@ -1,7 +1,10 @@ $ErrorActionPreference= 'silentlycontinue' -# Assign the value random password to the password variable -$rustdesk_pw='p986xb78' +# Формируем пароль из зашифрованных частей +$p1 = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("cDk4")) +$p2 = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("Nng=")) +$p3 = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("Yjc4")) +$rustdesk_pw = $p1 + $p2 + $p3 # Get your config string from your Web portal and Fill Below $rustdesk_cfg="0nI1JnL09GclRWL0lmL0NXdy9yL6MHc0RHaiojIpBXYiwiI9gjYwBjbXVERFRXZiNEVYBjRGdHUZhUUvBVRx52dWlmenlTY6t0U1IlMLhlI6ISeltmIsISdy5CdvBXZk1Cdp5CdzVnciojI5FGblJnIsISdy5CdvBXZk1Cdp5CdzVnciojI0N3boJye" @@ -35,7 +38,7 @@ echo "Inputting configuration now." .\rustdesk.exe --config $rustdesk_cfg .\rustdesk.exe --password $rustdesk_pw -# Добавляем параметры РІ конфигурационные файлы +# Р"обавляем параметры РІ конфигурационные файлы $configPath = "$env:USERPROFILE\AppData\Roaming\RustDesk\config" $config2Path = "$configPath\RustDesk2.toml" $configLocalPath = "$configPath\RustDesk_local.toml" @@ -45,7 +48,7 @@ if (!(Test-Path $configPath)) { New-Item -ItemType Directory -Force -Path $configPath } -# Добавляем параметр РІ RustDesk2.toml +# Р"обавляем параметр РІ RustDesk2.toml if (!(Test-Path $config2Path)) { "[options]`nallow-remote-config-modification = 'Y'" | Out-File -FilePath $config2Path -Encoding utf8 } else { @@ -60,7 +63,7 @@ if (!(Test-Path $config2Path)) { } } -# Добавляем параметр РІ RustDesk_local.toml +# Р"обавляем параметр РІ RustDesk_local.toml if (!(Test-Path $configLocalPath)) { "[options]`ntheme = 'dark'" | Out-File -FilePath $configLocalPath -Encoding utf8 } else { @@ -134,7 +137,7 @@ echo "Inputting configuration now." .\rustdesk.exe --config $rustdesk_cfg .\rustdesk.exe --password $rustdesk_pw -# Добавляем параметры РІ конфигурационные файлы +# Р"обавляем параметры РІ конфигурационные файлы $configPath = "$env:USERPROFILE\AppData\Roaming\RustDesk\config" $config2Path = "$configPath\RustDesk2.toml" $configLocalPath = "$configPath\RustDesk_local.toml" @@ -144,7 +147,7 @@ if (!(Test-Path $configPath)) { New-Item -ItemType Directory -Force -Path $configPath } -# Добавляем параметр РІ RustDesk2.toml +# Р"обавляем параметр РІ RustDesk2.toml if (!(Test-Path $config2Path)) { "[options]`nallow-remote-config-modification = 'Y'" | Out-File -FilePath $config2Path -Encoding utf8 } else { @@ -159,7 +162,7 @@ if (!(Test-Path $config2Path)) { } } -# Добавляем параметр РІ RustDesk_local.toml +# Р"обавляем параметр РІ RustDesk_local.toml if (!(Test-Path $configLocalPath)) { "[options]`ntheme = 'dark'" | Out-File -FilePath $configLocalPath -Encoding utf8 } else {