Update windows run snippet

This commit is contained in:
Itay Mizeretz 2017-09-18 18:17:04 +03:00
parent cc5c728fe4
commit 8198717e5a
1 changed files with 1 additions and 3 deletions

View File

@ -37,9 +37,7 @@ class RunMonkeyPageComponent extends React.Component {
generateWindowsCmd(ip, is32Bit) { generateWindowsCmd(ip, is32Bit) {
let bitText = is32Bit ? '32' : '64'; let bitText = is32Bit ? '32' : '64';
return ` return `powershell [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; (New-Object System.Net.WebClient).DownloadFile('https://${ip}:5000/api/monkey/download/monkey-windows-${bitText}.exe','.\\monkey.exe'); ;Start-Process -FilePath '.\\monkey.exe' -ArgumentList 'm0nk3y -s ${ip}:5000';`;
PowerShell (New-Object System.Net.WebClient).DownloadFile('https://${ip}:5000/api/monkey/download/monkey-windows-${bitText}.exe','monkey.exe');
Start-Process -FilePath 'monkey.exe' -ArgumentList 'm0nk3y -s ${ip}:5000';`;
} }
runLocalMonkey = () => { runLocalMonkey = () => {