diff --git a/agents/meshcmd.js b/agents/meshcmd.js
index 0ba4016b..4a3d3e49 100644
--- a/agents/meshcmd.js
+++ b/agents/meshcmd.js
@@ -395,6 +395,11 @@ function run(argv) {
});
}
});
+ } else if (settings.action == 'netinfo') {
+ // Display network information
+ var interfaces = require('os').networkInterfaces();
+ console.log(JSON.stringify(interfaces, 2, ' '));
+ exit(0); return;
} else if (settings.action == 'amtinfo') {
// Display Intel AMT version and activation state
mestate = {};
diff --git a/agents/meshcmd.min.js b/agents/meshcmd.min.js
index 0ba4016b..4a3d3e49 100644
--- a/agents/meshcmd.min.js
+++ b/agents/meshcmd.min.js
@@ -395,6 +395,11 @@ function run(argv) {
});
}
});
+ } else if (settings.action == 'netinfo') {
+ // Display network information
+ var interfaces = require('os').networkInterfaces();
+ console.log(JSON.stringify(interfaces, 2, ' '));
+ exit(0); return;
} else if (settings.action == 'amtinfo') {
// Display Intel AMT version and activation state
mestate = {};
diff --git a/meshcentral.js b/meshcentral.js
index 1cc0fdf2..1aeba6d1 100644
--- a/meshcentral.js
+++ b/meshcentral.js
@@ -575,7 +575,7 @@ function CreateMeshCentralServer(config, args) {
var newAccRights = 0;
for (var j in obj.config.domains[i].newaccountsrights) {
var r = obj.config.domains[i].newaccountsrights[j].toLowerCase();
- if (r == 'fulladmin') { newAccRights = 0xFFFFFFFF; }
+ if (r == 'fulladmin') { newAccRights = 4294967295; } // 0xFFFFFFFF
if (r == 'serverbackup') { newAccRights |= 1; }
if (r == 'manageusers') { newAccRights |= 2; }
if (r == 'serverrestore') { newAccRights |= 4; }
@@ -614,7 +614,7 @@ function CreateMeshCentralServer(config, args) {
else { console.log('Invalid administrator name.'); process.exit(); return; }
obj.db.Get(adminname, function (err, user) {
if (user.length != 1) { console.log('Invalid user name.'); process.exit(); return; }
- user[0].siteadmin = 4294967295;
+ user[0].siteadmin = 4294967295; // 0xFFFFFFFF
obj.db.Set(user[0], function () {
if (user[0].domain == '') { console.log('User ' + user[0].name + ' set to site administrator.'); } else { console.log('User ' + user[0].name + ' of domain ' + user[0].domain + ' set to site administrator.'); }
process.exit();
diff --git a/meshuser.js b/meshuser.js
index 765032dd..9544c574 100644
--- a/meshuser.js
+++ b/meshuser.js
@@ -1404,7 +1404,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
// Create the new device group
var links = {};
- links[user._id] = { name: user.name, rights: 0xFFFFFFFF };
+ links[user._id] = { name: user.name, rights: 4294967295 };
mesh = { type: 'mesh', _id: meshid, name: command.meshname, mtype: command.meshtype, desc: command.desc, domain: domain.id, links: links };
db.Set(common.escapeLinksFieldName(mesh));
parent.meshes[meshid] = mesh;
@@ -1412,7 +1412,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
// Change the user to make him administration of the new device group
if (user.links == null) user.links = {};
- user.links[meshid] = { rights: 0xFFFFFFFF };
+ user.links[meshid] = { rights: 4294967295 };
user.subscriptions = parent.subscribe(user._id, ws);
db.SetUser(user);
diff --git a/package.json b/package.json
index 3f451032..3cb4dbfa 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "meshcentral",
- "version": "0.3.6-v",
+ "version": "0.3.6-x",
"keywords": [
"Remote Management",
"Intel AMT",
diff --git a/public/commander.htm b/public/commander.htm
index d2c2ed1c..6d2acb1b 100644
--- a/public/commander.htm
+++ b/public/commander.htm
@@ -1,4 +1,4 @@
-
Disconnected
Loading...
System Status
Hardware Information
Event Log
Network Settings
User Accounts
Serial-over-LAN Terminal
Intel® AMT Redirection port or Serial-over-LAN feature is disabled, click here to enable it.
Remote computer is not powered on, click here to issue a power command.
Remote Desktop
Intel® AMT Redirection port or KVM feature is disabled, click here to enable it.
Remote computer is not powered on, click here to issue a power command.
Audit Log
Security Settings
Internet Settings
System Defense
Agent Presence
Script Editor
Script
Compiled Script
Variables
Console
Storage
Event Subscriptions
Wake Alarms
Permission
Granted Permissions
*Minimum 8 characters with upper, lowercase, 0-9, and one of !@#$%^&*()+-
Warning:Some power actions may result in data loss and may disconnect the desktop, terminal or disk redirection sessions.
Consent Display
Image Encoding
Software KVM
Quality
Scaling
Not Required
Required for KVM only
Always Required
Authentication
Encryption
This will save the entire state of Intel® AMT for this machine into file. Passwords will not be saved, but some sensitive data may be included.
Disabled
ICMP response
RMCP response
ICMP & RMCP response
Dynamic DNS client
Defaut Interval is 1440 minutes, Default TTL is 900 seconds.
Remote Command
Boot Source
Boot Media Index
IDER Boot Device
Verbocity
After wake