From a77d40505ad3103ea653e8314657f78599c2d2dc Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Mon, 19 Feb 2024 23:16:31 +0000 Subject: [PATCH] French bitlocker fix (#5832) Signed-off-by: si458 --- agents/modules_meshcore/computer-identifiers.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/agents/modules_meshcore/computer-identifiers.js b/agents/modules_meshcore/computer-identifiers.js index f55cc2b0..c9af13c2 100644 --- a/agents/modules_meshcore/computer-identifiers.js +++ b/agents/modules_meshcore/computer-identifiers.js @@ -447,12 +447,14 @@ function windows_volumes() var abc = lines[x].trim(); var englishidpass = (abc !== '' && abc.includes('Numerical Password:')); // English ID var germanidpass = (abc !== '' && abc.includes('Numerisches Kennwort:')); // German ID + var frenchidpass = (abc !== '' && abc.includes('Mot de passe num')); // French ID var englishpass = (abc !== '' && abc.includes('Password:') && !abc.includes('Numerical Password:')); // English Password var germanpass = (abc !== '' && abc.includes('Kennwort:') && !abc.includes('Numerisches Kennwort:')); // German Password - if (englishidpass || germanidpass || englishpass || germanpass) { + var frenchpass = (abc !== '' && abc.includes('Mot de passe :') && !abc.includes('Mot de passe num')); // French Password + if (englishidpass || germanidpass || frenchidpass|| englishpass || germanpass || frenchpass) { var nextline = lines[x + 1].trim(); - if (x + 1 < lines.length && (nextline !== '' && nextline.startsWith('ID:'))) { - identifier = nextline.replace('ID:','').trim(); + if (x + 1 < lines.length && (nextline !== '' && (nextline.startsWith('ID:') || nextline.startsWith('ID :')) )) { + identifier = nextline.replace('ID:','').replace('ID :', '').trim(); foundIDMarkedLine = true; }else if (x + 1 < lines.length && nextline !== '') { password = nextline;