- Notifications
You must be signed in to change notification settings - Fork 818
Closed
Labels
BugAn error, flaw, misbehavior or failure in the Monkey or Monkey Island.An error, flaw, misbehavior or failure in the Monkey or Monkey Island.Complexity: MediumImpact: High
Description
Describe the bug
If you select windows and input a username, the generated command will not work:

To Reproduce
Steps to reproduce the behavior:
- Configure the run command as shown in the screenshot
- See error
Solutions:
These changes need to be done to the command:
- Absolute path needs to be provided instead of "./monkey" as the output of downloaded file
powershell.exeneeds to be under-FilePathflag:-FilePath powershell.exe- The
$trueneeds to be escaped with ` character.
Example of a working command:
Start-Process -FilePath powershell.exe -ArgumentList "-noexit [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {`$true}; (New-Object System.Net.WebClient).DownloadFile('https://172.19.176.1:5000/api/monkey/download/monkey-windows-64.exe','C:\Users\user3\monkey.exe'); Start-Process -FilePath 'C:\Users\user3\monkey.exe' -ArgumentList 'm0nk3y -s 172.19.176.1:5000';" -Credential user3 Tasks
- Fix it. (0d) - @VakarisZ
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugAn error, flaw, misbehavior or failure in the Monkey or Monkey Island.An error, flaw, misbehavior or failure in the Monkey or Monkey Island.Complexity: MediumImpact: High
