diff --git a/exeHandler.js b/exeHandler.js index 551d239c..f45fd16b 100644 --- a/exeHandler.js +++ b/exeHandler.js @@ -37,7 +37,7 @@ module.exports.streamExeWithJavaScript = function (options) { if (!options.js) { throw ('js content not specified'); } // If a Windows binary, parse it if not already parsed - if ((options.platform == 'win32') && (!options.peinfo)) { options.peinfo = require('PE_Parser')(options.sourcePath); } + if ((options.platform == 'win32') && (!options.peinfo)) { options.peinfo = module.exports.parseWindowsExecutable(options.sourceFileName); } // If unsigned Windows or Linux, we merge at the end with the GUID and no padding. if ((options.platform == 'win32' && options.peinfo.CertificateTableAddress == 0) || options.platform != 'win32') { @@ -79,7 +79,7 @@ module.exports.streamExeWithMeshPolicy = function (options) { if (!options.msh) { throw ('msh content not specified'); } // If a Windows binary, parse it if not already parsed - if ((options.platform == 'win32') && (!options.peinfo)) { options.peinfo = require('PE_Parser')(options.sourcePath); } + if ((options.platform == 'win32') && (!options.peinfo)) { options.peinfo = module.exports.parseWindowsExecutable(options.sourceFileName); } // If unsigned Windows or Linux, we merge at the end with the GUID and no padding. if ((options.platform == 'win32' && options.peinfo.CertificateTableAddress == 0) || options.platform != 'win32') { diff --git a/package.json b/package.json index 23810980..80e064db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.1.8-b", + "version": "0.1.8-d", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index 61898ac9..25991091 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -286,7 +286,7 @@ -
+