TestServer.ps1
# cd Desktop\Arcane\Server\; IEX (Get-Content .\TestServer.ps1 -Raw -Encoding UTF8) Write-Output "⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️" Write-Output "⚠️ Only use this script for testing the application NOT in production ⚠️" Write-Output "⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️" Invoke-Expression -Command (Get-Content "Arcane_Server.psm1" -Raw) $password = "Jade@123@Pwd" $encodedCertificate = "MIIJeQIBAzCCCT8GCSqGSIb3DQEHAaCCCTAEggksMIIJKDCCA98GCSqGSIb3DQEHBqCCA9AwggPMAgEAMIIDxQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIHZPW4tq6a6ECAggAgIIDmCfxpSFuFdIf9B5cykOMvwPtM9AcpQldNOcSb1n4Ue0ehvjdE8lpoTK9Vfz1HFC7NeIgO8jSpwen7PJxQW85uXqe/7/1b6Q7eS2fJLJtNl2LMiPWEvyasJYmWW5h90Oh6T0IpD0uxWiEr0jfyDPbIWwUMmDgKi//IElxo+14z/ZGiSZuPdTiBclk1Xpsui6hnqFdPFqoZ2c4QftqormTYzeizNWbieuojuZnXoYzWjFTYKT5P4HpXylJNhLlHsJxFA88JsYcnmQg3U13eatEEmVY5DGoCtwtA7hl6CSdlnhVGhsOGh+Giri7WOJOV7cTrDcblA7EzL6yEPYvdo+yiLlPiDPOmqhC0DdCK2kwDJjcxCuiePImBke5vOJW+s9RBqKKzJQUj/2P1VTBGXgO6rWxFsh2je+7XtWtJoU1tTkH3fXH4VEiYX+is2qM+MY6WMSO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fCo6y/pW5cMDswHzAHBgUrDgMCGgQU2Wo42CJgVUdtGF2LPp+bG5Txd68EFLH8icX7902y7cMKDQwEswHHq4hbAgIH0A==" Write-Host "Scenarios" Write-Host "---------------" Write-Host "1. Classic (Secure Password)" Write-Host "2. Classic (Plain-text password)" Write-Host "3. Classic Default Certificate" Write-Host "4. TLS v1.3" Write-Host "5. Verbosity Disabled, View Only, Prevent computer to sleep" Write-Host "6. Receive clipboard only" Write-Host "7. Send clipboard only" Write-Host "8. Clipboard synchronization disabled" Write-Host "" [int]$scenario = Read-Host "Please choose scenario (default: 1)" switch ($scenario) { 2 { Invoke-ArcaneServer -Password $password -EncodedCertificate $pwdProtectedEncodedCertificate -CertificatePassword (ConvertTo-SecureString -String "hello" -AsPlainText -Force) } 3 { Invoke-ArcaneServer -Password $password } 4 { Write-Host "⚡Check that TLSv1.3 is working." Invoke-ArcaneServer -Password $password -UseTLSv1_3 } 5 { Write-Host "⚡Check that verbosity is disabled." Write-Host "⚡Check that remote viewer can't control mouse and keyboard." Write-Host "⚡Check that computer wont go to sleep." Invoke-ArcaneServer -Password $password -DisableVerbosity -ViewOnly -PreventComputerToSleep } 6 { Write-Host "⚡Check if server is only authorized to receive remote clipboard." Invoke-ArcaneServer -Password $password -EncodedCertificate $encodedCertificate -Clipboard "Receive" } 7 { Write-Host "⚡Check if server is only authorized to send local clipboard." Invoke-ArcaneServer -Password $password -EncodedCertificate $encodedCertificate -Clipboard "Send" } 8 { Write-Host "⚡Check if clipboard synchronization is completely disabled." Invoke-ArcaneServer -Password $password -EncodedCertificate $encodedCertificate -Clipboard "Disabled" } default { Invoke-ArcaneServer -SecurePassword (ConvertTo-SecureString -String $password -AsPlainText -Force) -EncodedCertificate $encodedCertificate } } |