forked from p34709852/monkey
parent
aa959c3879
commit
b5c9828ddc
|
@ -31,6 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
|
||||
### Fixed
|
||||
- Attempted to delete a directory when monkey config reset was called. #1054
|
||||
- An errant space in the windows commands to run monkey manually. #1153
|
||||
|
||||
### Security
|
||||
- Address minor issues discovered by Dlint. #1075
|
||||
|
|
|
@ -4,7 +4,7 @@ import {OS_TYPES} from '../utils/OsTypes';
|
|||
export default function generateLocalWindowsCmd(ip, osType, username) {
|
||||
let bitText = osType === OS_TYPES.WINDOWS_32 ? '32' : '64';
|
||||
let command = `powershell [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; `
|
||||
+ `(New-Object System.Net.WebClient).DownloadFile('https://${ip}:5000/api/monkey/download/ `
|
||||
+ `(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';`;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import {OS_TYPES} from '../utils/OsTypes';
|
|||
export default function generateLocalWindowsPowershell(ip, osType, username) {
|
||||
let bitText = osType === OS_TYPES.WINDOWS_32 ? '32' : '64';
|
||||
let command = `[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; `
|
||||
+ `(New-Object System.Net.WebClient).DownloadFile('https://${ip}:5000/api/monkey/download/ `
|
||||
+ `(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';`;
|
||||
|
||||
|
|
Loading…
Reference in New Issue