UI: remove -noexit flag from manual run command, because there's no point in opening an empty powershell window

This commit is contained in:
VakarisZ 2021-11-05 09:57:20 +02:00
parent 51eb6f2ce5
commit 896cf7a21d
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import {OS_TYPES} from '../utils/OsTypes';
export function getAgentDownloadCommand(ip, osType) {
let bitText = osType === OS_TYPES.WINDOWS_32 ? '32' : '64';
return `$execCmd = @"\r\n`
+ `-noexit [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {\`$true};`
+ `[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {\`$true};`
+ `(New-Object System.Net.WebClient).DownloadFile('https://${ip}:5000/api/monkey/download/monkey-windows-${bitText}.exe',`
+ `"""$env:TEMP\\monkey.exe""");Start-Process -FilePath '$env:TEMP\\monkey.exe' -ArgumentList 'm0nk3y -s ${ip}:5000';`
+ `\r\n"@; \r\n`