Skip to content

Commit 80d3a69

Browse files
committed
island: Remove errant space in manual run windows command
Fixes #1153
1 parent aa959c3 commit 80d3a69

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
3131

3232
### Fixed
3333
- Attempted to delete a directory when monkey config reset was called. #1054
34+
- An errant space in the windows commands to run monkey manually. #1153
3435

3536
### Security
3637
- Address minor issues discovered by Dlint. #1075

monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/commands/local_windows_cmd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {OS_TYPES} from '../utils/OsTypes';
44
export default function generateLocalWindowsCmd(ip, osType, username) {
55
let bitText = osType === OS_TYPES.WINDOWS_32 ? '32' : '64';
66
let command = `powershell [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; `
7-
+ `(New-Object System.Net.WebClient).DownloadFile('https://${ip}:5000/api/monkey/download/ `
7+
+ `(New-Object System.Net.WebClient).DownloadFile('https://${ip}:5000/api/monkey/download/`
88
+ `monkey-windows-${bitText}.exe','.\\monkey.exe'); `
99
+ `;Start-Process -FilePath '.\\monkey.exe' -ArgumentList 'm0nk3y -s ${ip}:5000';`;
1010

monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/commands/local_windows_powershell.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {OS_TYPES} from '../utils/OsTypes';
44
export default function generateLocalWindowsPowershell(ip, osType, username) {
55
let bitText = osType === OS_TYPES.WINDOWS_32 ? '32' : '64';
66
let command = `[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; `
7-
+ `(New-Object System.Net.WebClient).DownloadFile('https://${ip}:5000/api/monkey/download/ `
7+
+ `(New-Object System.Net.WebClient).DownloadFile('https://${ip}:5000/api/monkey/download/`
88
+ `monkey-windows-${bitText}.exe','.\\monkey.exe'); `
99
+ `;Start-Process -FilePath '.\\monkey.exe' -ArgumentList 'm0nk3y -s ${ip}:5000';`;
1010

0 commit comments

Comments
 (0)