mirror of
https://github.com/Metabolix/HackBGRT.git
synced 2026-09-26 22:11:32 -07:00
Make BitLocker detection more reliable
This commit is contained in:
+2
-2
@@ -637,8 +637,8 @@ public class Setup {
|
|||||||
WriteLine("BitLocker status could not be determined.");
|
WriteLine("BitLocker status could not be determined.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var reOn = new Regex(@"Conversion Status:\s*(Encr|Fully Encr)|Protection Status:\s*Protection On");
|
var reOn = new Regex(@"Conversion Status:\s*.*Encr|AES");
|
||||||
var reOff = new Regex(@"Conversion Status:\s*(Fully Decrypted)|Protection Status:\s*Protection Off");
|
var reOff = new Regex(@"Conversion Status:\s*(Fully Decrypted)|\s0[.,]0\s*%");
|
||||||
var isOn = reOn.Match(output).Success;
|
var isOn = reOn.Match(output).Success;
|
||||||
var isOff = reOff.Match(output).Success;
|
var isOff = reOff.Match(output).Success;
|
||||||
if (!isOn && isOff) {
|
if (!isOn && isOff) {
|
||||||
|
|||||||
Reference in New Issue
Block a user