mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added agent hashing batch file.
This commit is contained in:
parent
7610cf29cb
commit
58cee052c3
3 changed files with 63 additions and 0 deletions
29
agents/hashagents.js
Normal file
29
agents/hashagents.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
var fs = require('fs'), r = '';
|
||||
|
||||
var agents = {
|
||||
'MeshService-signed.exe': 3,
|
||||
'MeshService64-signed.exe': 4,
|
||||
'meshagent_x86': 5,
|
||||
'meshagent_x86-64': 6,
|
||||
'meshagent_arm': 9,
|
||||
'meshagent_mips': 7,
|
||||
'meshagent_pogo': 13,
|
||||
'meshagent_poky': 15,
|
||||
'meshagent_osx-x86-64': 16,
|
||||
'meshagent_poky64': 18,
|
||||
'meshagent_x86_nokvm': 19,
|
||||
'meshagent_x86-64_nokvm': 20,
|
||||
'meshagent_arm-linaro': 24,
|
||||
'meshagent_armhf': 25,
|
||||
'meshagent_arm64': 26,
|
||||
'meshagent_freebsd_x86-64': 30
|
||||
}
|
||||
|
||||
for (var i in agents) { r += hashAgent(i, agents[i]); }
|
||||
console.log(r);
|
||||
process.exit();
|
||||
|
||||
function hashAgent(filename, id) {
|
||||
if (fs.existsSync(filename) != true) return '';
|
||||
return id + ': ' + filename + '\r\n' + getSHA384FileHash(filename).toString('hex') + '\r\n';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue