1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Improved AmtConfig command in agent console.

This commit is contained in:
Ylian Saint-Hilaire 2022-04-11 15:05:23 -07:00
parent 3d3e46f5fa
commit 79c97af78b
2 changed files with 8 additions and 29 deletions

View file

@ -1732,6 +1732,12 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
}
break;
}
case 'amtconfig': {
// Sent by the agent when the agent needs a Intel AMT APF connection to the server
const cookie = parent.parent.encodeCookie({ a: 'apf', n: obj.dbNodeKey, m: obj.dbMeshKey }, parent.parent.loginCookieEncryptionKey);
try { obj.send(JSON.stringify({ action: 'amtconfig', user: '**MeshAgentApfTunnel**', pass: cookie })); } catch (ex) { }
break;
}
case 'scriptTask': {
// TODO
break;