Updated file headers.

This commit is contained in:
Ylian Saint-Hilaire 2021-01-09 14:31:09 -08:00
parent 2c292a9842
commit b195852399
64 changed files with 84 additions and 103 deletions

View File

@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2017-2020 Intel Corporation
Copyright 2017-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -488,31 +488,22 @@ function createMeshCore(agent) {
mesh.SendCommand(msg);
}
// If we are running in Duktape, agent will be null
if (agent == null) {
// Running in native agent, Import libraries
db = require('SimpleDataStore').Shared();
sha = require('SHA256Stream');
mesh = require('MeshAgent');
childProcess = require('child_process');
if (mesh.hasKVM == 1) { // if the agent is compiled with KVM support
// Check if this computer supports a desktop
try
{
if ((process.platform == 'win32') || (process.platform == 'darwin') || (require('monitor-info').kvm_x11_support)) {
meshCoreObj.caps |= 1; meshCoreObjChanged();
} else if (process.platform == 'linux' || process.platform == 'freebsd') {
require('monitor-info').on('kvmSupportDetected', function (value) { meshCoreObj.caps |= 1; meshCoreObjChanged(); });
}
} catch (e) { }
}
} else {
// Running in nodejs
meshCoreObj.value += '-NodeJS';
meshCoreObj.caps = 8;
mesh = agent.getMeshApi();
// Import libraries
db = require('SimpleDataStore').Shared();
sha = require('SHA256Stream');
mesh = require('MeshAgent');
childProcess = require('child_process');
if (mesh.hasKVM == 1) { // if the agent is compiled with KVM support
// Check if this computer supports a desktop
try
{
if ((process.platform == 'win32') || (process.platform == 'darwin') || (require('monitor-info').kvm_x11_support)) {
meshCoreObj.caps |= 1; meshCoreObjChanged();
} else if (process.platform == 'linux' || process.platform == 'freebsd') {
require('monitor-info').on('kvmSupportDetected', function (value) { meshCoreObj.caps |= 1; meshCoreObjChanged(); });
}
} catch (e) { }
}
mesh.DAIPC = obj.DAIPC;
/*
@ -3945,21 +3936,11 @@ function createMeshCore(agent) {
}
//
// Module startup
// Startup for Duktape only. This file is not intended to run in NodeJS.
//
try {
var xexports = null, mainMeshCore = null;
try { xexports = module.exports; } catch (e) { }
if (xexports != null) {
// If we are running within NodeJS, export the core
module.exports.createMeshCore = createMeshCore;
} else {
// If we are not running in NodeJS, launch the core
mainMeshCore = createMeshCore();
mainMeshCore.start(null);
}
mainMeshCore = createMeshCore();
mainMeshCore.start(null);
} catch (e) {
require('MeshAgent').SendCommand({ action: 'msg', type: 'console', value: "uncaughtException2: " + ex });
}

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 Intel Corporation
Copyright 2020-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -17,7 +17,7 @@ limitations under the License.
/**
* @description APF/CIRA Client for Duktape
* @author Joko Sastriawan & Ylian Saint-Hilaire
* @copyright Intel Corporation 2020
* @copyright Intel Corporation 2020-2021
* @license Apache-2.0
* @version v0.0.2
*/

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2019-2020 Intel Corporation
Copyright 2019-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -17,7 +17,7 @@ limitations under the License.
/**
* @description APF/CIRA Client for Duktape
* @author Joko Sastriawan & Ylian Saint-Hilaire
* @copyright Intel Corporation 2020
* @copyright Intel Corporation 2020-2021
* @license Apache-2.0
* @version v0.0.2
*/

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2019-2020 Intel Corporation
Copyright 2019-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2019-2020 Intel Corporation
Copyright 2019-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2017-2020 Intel Corporation
Copyright 2017-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral Server IDER handler
* @author Ylian Saint-Hilaire & Bryan Roe
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 Intel Corporation
Copyright 2020-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 Intel Corporation
Copyright 2020-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 Intel Corporation
Copyright 2020-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 Intel Corporation
Copyright 2020-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 Intel Corporation
Copyright 2020-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 Intel Corporation
Copyright 2020-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 Intel Corporation
Copyright 2020-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
Copyright 2020 Intel Corporation
Copyright 2020-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral Intel(R) AMT Event Parser
* @author Ylian Saint-Hilaire & Bryan Roe
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral Intel AMT manager
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral Intel(R) AMT Local Scanner
* @author Ylian Saint-Hilaire & Joko Sastriawan
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @fileoverview Script Compiler / Decompiler / Runner
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.1.0e
*/

View File

@ -1,7 +1,7 @@
/**
* @description Certificate generator
* @author Joko Sastriawan / Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral Common Library
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

2
db.js
View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral database module
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.2
*/

View File

@ -1,5 +1,5 @@
/*
Copyright 2018-2020 Intel Corporation
Copyright 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral Intel(R) AMT Interceptor
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.3
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral letsEncrypt module, uses GreenLock to do all the work.
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.2
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral MeshAgent
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2019-2020
* @copyright Intel Corporation 2019-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral accelerator
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral MeshAgent communication module
* @author Ylian Saint-Hilaire & Bryan Roe
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral main module
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral remote desktop multiplexor
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral device file download relay module
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral e-mail server communication modules
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral connection relay module
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral Mesh Agent Local Scanner
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral SMS gateway communication module
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral MeshAgent
* @author Ylian Saint-Hilaire & Bryan Roe
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral Intel(R) AMT MPS server
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MQTT broker reference implementation based on AEDES
* @author Joko Banu Sastriawan, Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral MSTSC relay
* @author Ylian Saint-Hilaire & Bryan Roe
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral Multi-Server Support
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description Meshcentral web server
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.2
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral v1 legacy Swarm Server, used to update agents and get them on MeshCentral2
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral MeshAgent
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2019-2020
* @copyright Intel Corporation 2019-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description MeshCentral web server
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/

View File

@ -1,7 +1,7 @@
/**
* @description Windows Service Launcher
* @author Ylian Saint-Hilaire
* @copyright Intel Corporation 2018-2020
* @copyright Intel Corporation 2018-2021
* @license Apache-2.0
* @version v0.0.1
*/