Updated MeshCentral Router for Windows.
Ylian Saint-Hilaire committed
Apr 4, 2021 at 14:26 UTC
3770b256e73f4e441a1e5e1df7bbba3d83cbb408
3 files changed
+30
-1
agents/MeshCentralRouter.exe
Binary files a/agents/MeshCentralRouter.exe and b/agents/MeshCentralRouter.exe differ
amtprovisioningserver.js
+16
@@ -599,6 +599,22 @@ module.exports.CreateAmtProvisioningServer = function (parent, config) {
599
// Log the Intel AMT activation operation in the domain log
600
obj.logAmtActivation = function (domain, x) {
601
if (x == null) return true;
602
+
603
+ // Add the password to the Intel AMT list of UUID to passwords
604
+ if ((typeof x.amtUuid == 'string') && (typeof x.password == 'string')) {
605
+ if (parent.amtPasswords == null) { parent.amtPasswords = {}; }
606
+ if (parent.amtPasswords[x.amtUuid] == null) {
607
+ parent.amtPasswords[x.amtUuid] = [x.password]; // Add password to array
608
+ parent.amtPasswords = parent.common.sortObj(parent.amtPasswords);
609
+ } else {
610
+ if (parent.amtPasswords[x.amtUuid].indexOf(x.password) == -1) {
611
+ parent.amtPasswords[x.amtUuid].unshift(x.password); // Add password at the start of the array
612
+ while (parent.amtPasswords[x.amtUuid].length > 3) { parent.amtPasswords[x.amtUuid].pop(); } // Only keep the 3 last passwords for any given device
613
+ }
614
+ }
615
+ }
616
+
617
+ // Append to the log file
618
var logpath = null;
619
if ((domain.amtacmactivation == null) || (domain.amtacmactivation.log == null) || (typeof domain.amtacmactivation.log != 'string')) {
620
if (domain.id == '') { logpath = parent.path.join(obj.parent.datapath, 'amtactivation.log'); } else { logpath = parent.path.join(obj.parent.datapath, 'amtactivation-' + domain.id + '.log'); }
package.json
+14
-1
@@ -36,6 +36,8 @@
36
"sample-config-advanced.json"
37
],
38
"dependencies": {
39
+ "archiver": "^4.0.2",
40
+ "archiver-zip-encrypted": "^1.0.8",
41
"body-parser": "^1.19.0",
42
"cbor": "~5.2.0",
43
"compression": "^1.7.4",
@@ -44,14 +46,25 @@
46
"express": "^4.17.0",
47
"express-handlebars": "^3.1.0",
48
"express-ws": "^4.0.0",
49
+ "image-size": "^0.9.7",
50
"ipcheck": "^0.1.0",
51
+ "loadavg-windows": "^1.1.1",
52
"minimist": "^1.2.0",
53
+ "mongodb": "^3.6.5",
54
"multiparty": "^4.2.1",
55
"nedb": "^1.8.0",
56
"node-forge": "^0.10.0",
57
+ "node-rdpjs-2": "^0.3.5",
58
+ "node-windows": "^1.0.0-beta.5",
59
+ "nodemailer": "^6.5.0",
60
+ "otplib": "^10.2.3",
61
+ "saslprep": "^1.0.3",
62
+ "twilio": "^3.59.0",
63
+ "web-push": "^3.4.4",
64
"ws": "^6.2.1",
65
"xmldom": "^0.5.0",
54
- "yauzl": "^2.10.0"
66
+ "yauzl": "^2.10.0",
67
+ "yubikeyotp": "^0.2.0"
68
},
69
"repository": {
70
"type": "git",