Make GetLogs work on Linux.

This commit is contained in:
Jared Goodwin 2020-01-18 22:17:53 -08:00
parent af090ea5da
commit abd8839084
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ var commands = [
return;
}
;
BrowserSockets.Connection.invoke("ExecuteCommandOnClient", "PSCore", 'Get-Content -Path "C:\\Windows\\Temp\\Remotely_Logs.log"', selectedDevices.map(x => x.ID));
BrowserSockets.Connection.invoke("ExecuteCommandOnClient", "PSCore", 'Get-Content -Path "$([System.IO.Path]::GetTempPath())\\Remotely_Logs.log"', selectedDevices.map(x => x.ID));
}),
new ConsoleCommand("GetVersion", [], "Display the remote agent's version.", "GetVersion", "", (parameters, paramDictionary) => {
var selectedDevices = Main.DataGrid.GetSelectedDevices();

File diff suppressed because one or more lines are too long

View File

@ -58,7 +58,7 @@ var commands: Array<ConsoleCommand> = [
AddConsoleOutput("No devices are selected.");
return;
};
BrowserSockets.Connection.invoke("ExecuteCommandOnClient", "PSCore", 'Get-Content -Path "C:\\Windows\\Temp\\Remotely_Logs.log"', selectedDevices.map(x => x.ID));
BrowserSockets.Connection.invoke("ExecuteCommandOnClient", "PSCore", 'Get-Content -Path "$([System.IO.Path]::GetTempPath())\\Remotely_Logs.log"', selectedDevices.map(x => x.ID));
}
),
new ConsoleCommand(