ref: obfuscate arguments

This commit is contained in:
leukipp
2024-12-17 15:53:46 +01:00
parent a9b7820261
commit bbc435ef1e
2 changed files with 74 additions and 3 deletions
+10
View File
@@ -122,6 +122,15 @@ const getSerialNumber = () => {
]);
};
/**
* Gets the host machine id using `/etc/machine-id`.
*
* @returns {string|null} The machine id of the system.
*/
const getMachineId = () => {
return execSyncCommand("cat", ["/etc/machine-id"]);
};
/**
* Gets the host name of the current system using `os.hostname()`.
*
@@ -364,6 +373,7 @@ module.exports = {
update,
getModel,
getSerialNumber,
getMachineId,
getHostName,
getUpTime,
getMemorySize,