Updated Windows agents.

Ylian Saint-Hilaire committed Feb 22, 2022 at 00:21 UTC 5f1b462af0b2359a9f4879224f7509bdd592b7ee
10 files changed +14 -15
agents/MeshCmd-signed.exe
Binary files a/agents/MeshCmd-signed.exe and b/agents/MeshCmd-signed.exe differ
agents/MeshCmd64-signed.exe
Binary files a/agents/MeshCmd64-signed.exe and b/agents/MeshCmd64-signed.exe differ
agents/MeshService-signed.exe
Binary files a/agents/MeshService-signed.exe and b/agents/MeshService-signed.exe differ
agents/MeshService.exe
Binary files a/agents/MeshService.exe and b/agents/MeshService.exe differ
agents/MeshService64-signed.exe
Binary files a/agents/MeshService64-signed.exe and b/agents/MeshService64-signed.exe differ
agents/MeshService64.exe
Binary files a/agents/MeshService64.exe and b/agents/MeshService64.exe differ
agents/hashagents.json
+6 -7
@@ -1,15 +1,15 @@
1 {
2 "3": {
3 "filename": "MeshService-signed.exe",
4 - "hash": "93917AC2C4A3A6A034B39675FA658B0A67F480DDE7BA5607A75F6A711D7ADC553208D98678340796D48813D1F4B56A94",
5 - "size": 3656000,
6 - "mtime": "2022-02-13T20:24:29Z"
4 + "hash": "F34F56D2D284E3865FA3F467799A1CBF92F4A510D73914104ED5CA10B93A46CE5887018265529B80D13D53685ECB2774",
5 + "size": 3676480,
6 + "mtime": "2022-02-22T06:55:40Z"
7 },
8 "4": {
9 "filename": "MeshService64-signed.exe",
10 - "hash": "B7AC4F1A3A66D0C377CE8E19FC86A666E9BA85AE233C6278CDCA05D156B5F2E018EC5C9FAE2A5968F2E64D0D0417B4CD",
11 - "size": 3272000,
12 - "mtime": "2022-02-13T20:24:32Z"
10 + "hash": "E00D0B58B943DA5614E765E8C0F370C77BCDFBB7DDEDC251F0A6E35ED9A178598D07EC560BFDDA1AD2DCA57429A284E4",
11 + "size": 3291456,
12 + "mtime": "2022-02-22T06:55:43Z"
13 },
14 "5": {
15 "filename": "meshagent_x86",
@@ -132,4 +132,3 @@
132 "mtime": "2022-01-08T00:23:52Z"
133 }
134 }
135 -0
meshagent.js
+1 -1
@@ -269,7 +269,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
269 else if (cmdid == 12) { // MeshCommand_AgentHash
270 if ((msg.length == 52) && (obj.agentExeInfo != null) && (obj.agentExeInfo.update == true)) {
271 const agenthash = msg.substring(4);
272 - const agentUpdateMethod = compareAgentBinaryHash(obj.agentExeInfo, agenthash)
272 + const agentUpdateMethod = compareAgentBinaryHash(obj.agentExeInfo, agenthash);
273 if (agentUpdateMethod === 2) { // Use meshcore agent update system
274 // Send the recovery core to the agent, if the agent is capable of running one
275 if (((obj.agentInfo.capabilities & 16) != 0) && (parent.parent.meshAgentsArchitectureNumbers[obj.agentInfo.agentId].core != null)) {
views/default.handlebars
+1 -1
@@ -1333,7 +1333,7 @@
1333 var webState = '{{{webstate}}}';
1334 if (webState != '') { webState = JSON.parse(decodeURIComponent(webState)); }
1335 if ((webState == null) || (typeof webState != 'object')) { webState = {}; }
1336 - for (var i in webState) { if (i != 'desktopsettings') { localStorage.setItem(i, webState[i]); } }
1336 + for (var i in webState) { if (i != 'desktopsettings') { try { localStorage.setItem(i, webState[i]); } catch (ex) {} } }
1337 if (!webState.loctag) { try { delete localStorage.removeItem('loctag'); } catch (ex) { } }
1338
1339 var args, urlargs;
webserver.js
+6 -6
@@ -4952,8 +4952,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
4952 if (domain.agentcustomization.servicename != null) { meshsettings += 'meshServiceName=' + domain.agentcustomization.servicename + '\r\n'; }
4953 if (domain.agentcustomization.filename != null) { meshsettings += 'fileName=' + domain.agentcustomization.filename + '\r\n'; }
4954 if (domain.agentcustomization.image != null) { meshsettings += 'image=' + domain.agentcustomization.image + '\r\n'; }
4955 - if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('fgcolor=', domain.agentcustomization.foregroundcolor); }
4956 - if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('bkcolor=', domain.agentcustomization.backgroundcolor); }
4955 + if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('foreground=', domain.agentcustomization.foregroundcolor); }
4956 + if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('background=', domain.agentcustomization.backgroundcolor); }
4957 }
4958 if (domain.agentTranslations != null) { meshsettings += 'translation=' + domain.agentTranslations + '\r\n'; } // Translation strings, not for MeshCentral Assistant
4959 }
@@ -5326,8 +5326,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
5326 if (domain.agentcustomization.servicename != null) { meshsettings += 'meshServiceName=' + domain.agentcustomization.servicename + '\r\n'; }
5327 if (domain.agentcustomization.filename != null) { meshsettings += 'fileName=' + domain.agentcustomization.filename + '\r\n'; }
5328 if (domain.agentcustomization.image != null) { meshsettings += 'image=' + domain.agentcustomization.image + '\r\n'; }
5329 - if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('fgcolor=', domain.agentcustomization.foregroundcolor); }
5330 - if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('bkcolor=', domain.agentcustomization.backgroundcolor); }
5329 + if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('foreground=', domain.agentcustomization.foregroundcolor); }
5330 + if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('background=', domain.agentcustomization.backgroundcolor); }
5331 }
5332 if (domain.agentTranslations != null) { meshsettings += 'translation=' + domain.agentTranslations + '\r\n'; }
5333
@@ -5429,8 +5429,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
5429 if (domain.agentcustomization.servicename != null) { meshsettings += 'meshServiceName=' + domain.agentcustomization.servicename + '\r\n'; }
5430 if (domain.agentcustomization.filename != null) { meshsettings += 'fileName=' + domain.agentcustomization.filename + '\r\n'; }
5431 if (domain.agentcustomization.image != null) { meshsettings += 'image=' + domain.agentcustomization.image + '\r\n'; }
5432 - if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('fgcolor=', domain.agentcustomization.foregroundcolor); }
5433 - if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('bkcolor=', domain.agentcustomization.backgroundcolor); }
5432 + if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('foreground=', domain.agentcustomization.foregroundcolor); }
5433 + if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('background=', domain.agentcustomization.backgroundcolor); }
5434 }
5435 if (domain.agentTranslations != null) { meshsettings += 'translation=' + domain.agentTranslations + '\r\n'; }
5436 return meshsettings;