mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-22 13:21:31 +03:00
Added agent hashing batch file.
This commit is contained in:
parent
7610cf29cb
commit
58cee052c3
1
agents/hashagents.bat
Normal file
1
agents/hashagents.bat
Normal file
@ -0,0 +1 @@
|
||||
MeshService-signed.exe hashagents.js > hashagents.txt
|
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';
|
||||
}
|
33
agents/hashagents.txt
Normal file
33
agents/hashagents.txt
Normal file
@ -0,0 +1,33 @@
|
||||
3: MeshService-signed.exe
|
||||
7127FBE8E5534E094F470921747ECEC22F8DCA75BA336CE1345A8BE320AECA4D2D9A668F4E4567DFC92FDBCEAF813CD9
|
||||
4: MeshService64-signed.exe
|
||||
51930CE2658BCF5D5CC5FA60AACE3B85FBAB009BFDB3156EF12065F0BB7F2A58AF635EBAD0B486D9D559439F3BAB44F8
|
||||
5: meshagent_x86
|
||||
480B6E0F91028D496A2E50B54F4BC2F3766ADAB86B4EAF0C6994672E741D195E6899B60510F53F7B7FA8F56C0753448D
|
||||
6: meshagent_x86-64
|
||||
1C588AC4916DAFF5C673E0594E88EB8C873D2E39AD7A039603F8E524D88F5F5C07BE6D2519DA9C17C23D194B861F6DDC
|
||||
9: meshagent_arm
|
||||
C4410E4C9A8939643286CB6ECE77FAA32AEB94BA9A5F830345C6EBA1E8CDA023C50D410438B983D525541FAD2D4B6114
|
||||
7: meshagent_mips
|
||||
AA1C78D6D4674EA5B13C5504A3CF02F98334F68FBEFE4CC495C96E3E5C5E170A20B9380BEC4143E96F4A43802323331A
|
||||
13: meshagent_pogo
|
||||
17D211B3EFCD696286702C3FDE72AD9B4BE013130DA6F6AE8763F14A6C1B28D5B156642750F5117793D4434828E14F90
|
||||
15: meshagent_poky
|
||||
9418CDC5772781313E0BC4219DBB229D65D21E3CBAD5796661179B1256712B2E0E93F8D795D3A0AA279C30DD31779652
|
||||
16: meshagent_osx-x86-64
|
||||
BD7071C5D2E46275202E802CB149A82948B4597399B64A8A22AED3F2593730D00646F9AA347E53B3F2460E42DB88FB87
|
||||
18: meshagent_poky64
|
||||
8D792AE57B7119410DEF72DA9C21C5E0FA1E15D7E80B65CBEC2D93AF3F50AAC258C173DE19875C7FAFCF72F5F2B9C764
|
||||
19: meshagent_x86_nokvm
|
||||
245560A57E059D7436462D18D12BED755C0CAC6B3220BE53C2449EC795AF86C5A1A0130B6FAF8FA6F7AF6242132FD824
|
||||
20: meshagent_x86-64_nokvm
|
||||
DA4ECF539BEB01676CB9A80D2C3817958F4CFF3717A98904B691D684DC747EFE393CE96FBF162616C7959659505B180D
|
||||
24: meshagent_arm-linaro
|
||||
E98934126BC58DE2815D6FB7E774771B6AE21B9CC2A532498E4A4D3139F6CC263636A2CB6665CCF5508042379B76867B
|
||||
25: meshagent_armhf
|
||||
77BAFE7886615DE018FA9DAFBE9E4430E1C8B1877DBE7B5283EC010F7B2CA1CAE813EF4E041E37485EE842E2AA43D68F
|
||||
26: meshagent_arm64
|
||||
E471574E1743165FBA188BBCFBB849FC905F032A694D814AF56922377099AF1A15151C1EA56620275D733281AAA69FF3
|
||||
30: meshagent_freebsd_x86-64
|
||||
A5A8784C936B3FA5B2E310382DD369B5820C6D17A80AB8DD99E8109C543AE4B1F2956F8E55CF60BBE480311C1327DC94
|
||||
|
Loading…
Reference in New Issue
Block a user