Updated headers.
Ylian Saint-Hilaire committed
Jan 23, 2022 at 23:21 UTC
836ad768acc42d3142fbd8eeb6016be02ca37bea
35 files changed
+43
-35
amt-ider.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Server IDER handler
3
* @author Ylian Saint-Hilaire & Bryan Roe
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
amtevents.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Intel(R) AMT Event Parser
3
* @author Ylian Saint-Hilaire & Bryan Roe
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
amtmanager.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Intel AMT manager
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
amtprovisioningserver.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Intel AMT Hello server
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
amtscanner.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Intel(R) AMT Local Scanner
3
* @author Ylian Saint-Hilaire & Joko Sastriawan
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
amtscript.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @fileoverview Script Compiler / Decompiler / Runner
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.1.0e
7
*/
apprelays.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral MSTSC & SSH relay
3
* @author Ylian Saint-Hilaire & Bryan Roe
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
certoperations.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description Certificate generator
3
* @author Joko Sastriawan / Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
common.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Common Library
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
db.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral database module
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.2
7
*/
exeHandler.js
+1
-1
@@ -1,5 +1,5 @@
1
/*
2
-Copyright 2018-2021 Intel Corporation
2
+Copyright 2018-2022 Intel Corporation
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
firebase.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Firebase communication module
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
interceptor.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Intel(R) AMT Interceptor
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.3
7
*/
letsencrypt.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral letsEncrypt module, uses ACME-Client to do all the work.
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.2
7
*/
mcrec.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral MeshAgent
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2019-2021
4
+* @copyright Intel Corporation 2019-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshaccelerator.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral accelerator
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshagent.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral MeshAgent communication module
3
* @author Ylian Saint-Hilaire & Bryan Roe
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshbot.js
+1
-1
@@ -3,7 +3,7 @@
3
/**
4
* @description MeshCentral bot sample code
5
* @author Ylian Saint-Hilaire
6
-* @copyright Intel Corporation 2018-2021
6
+* @copyright Intel Corporation 2018-2022
7
* @license Apache-2.0
8
* @version v0.0.1
9
*/
meshcentral.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral main module
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshctrl.js
+8
@@ -1,5 +1,13 @@
1
#!/usr/bin/env node
2
3
+/**
4
+* @description MeshCentral command line tool
5
+* @author Ylian Saint-Hilaire
6
+* @copyright Intel Corporation 2018-2022
7
+* @license Apache-2.0
8
+* @version v0.0.1
9
+*/
10
+
11
// Make sure we have the dependency modules
12
try { require('minimist'); } catch (ex) { console.log('Missing module "minimist", type "npm install minimist" to install it.'); return; }
13
try { require('ws'); } catch (ex) { console.log('Missing module "ws", type "npm install ws" to install it.'); return; }
meshdesktopmultiplex.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral remote desktop multiplexor
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshdevicefile.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral device file download relay module
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshipkvm.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral IP KVM Management Module
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2021
4
+* @copyright Intel Corporation 2021-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshmail.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral e-mail server communication modules
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshrelay.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral connection relay module
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshscanner.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Mesh Agent Local Scanner
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshsms.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral SMS gateway communication module
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
meshuser.js
+2
-2
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral MeshAgent
3
* @author Ylian Saint-Hilaire & Bryan Roe
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
@@ -5108,7 +5108,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
5108
// Add a new user account
5109
var err = null, errid = 0, newusername, newuserid, newuserdomain;
5110
try {
5111
- if ((user.siteadmin & 2) == 0) { err = "Permission denied"; errid = 1; }
5111
+ if ((user.siteadmin & MESHRIGHT_MANAGEUSERS) == 0) { err = "Permission denied"; errid = 1; }
5112
else if (common.validateUsername(command.username, 1, 256) == false) { err = "Invalid username"; errid = 2; } // Username is between 1 and 64 characters, no spaces
5113
else if ((command.username[0] == '~') || (command.username.indexOf('/') >= 0)) { err = "Invalid username"; errid = 2; } // Usernames cant' start with ~ and can't have '/'
5114
else if (common.validateString(command.pass, 1, 256) == false) { err = "Invalid password"; errid = 3; } // Password is between 1 and 256 characters
mpsserver.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Intel(R) AMT MPS server
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
mqttbroker.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MQTT broker reference implementation based on AEDES
3
* @author Joko Banu Sastriawan, Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
multiserver.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral Multi-Server Support
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
redirserver.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description Meshcentral web server
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.2
7
*/
swarmserver.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral v1 legacy Swarm Server, used to update agents and get them on MeshCentral2
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
webserver.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description MeshCentral web server
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/
winservice.js
+1
-1
@@ -1,7 +1,7 @@
1
/**
2
* @description Windows Service Launcher
3
* @author Ylian Saint-Hilaire
4
-* @copyright Intel Corporation 2018-2021
4
+* @copyright Intel Corporation 2018-2022
5
* @license Apache-2.0
6
* @version v0.0.1
7
*/