Closed VakarisZ closed 2 years ago
If you select windows and input a username, the generated command will not work:
Steps to reproduce the behavior:
These changes need to be done to the command:
powershell.exe
-FilePath
-FilePath powershell.exe
$true
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
Will a path with an environment variable work, like %temp%\monkey.exe?
%temp%\monkey.exe
Describe the bug
If you select windows and input a username, the generated command will not work:
To Reproduce
Steps to reproduce the behavior:
Solutions:
These changes need to be done to the command:
powershell.exe
needs to be under-FilePath
flag:-FilePath powershell.exe
$true
needs to be escaped with ` character.Example of a working command:
Tasks