UI: remove -noexit flag from manual run command, because there's no point in opening an empty powershell window
This commit is contained in:
parent
51eb6f2ce5
commit
896cf7a21d
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue