mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Detect correctly VeraCrypt rescue disk by looking for the little-endian encoding of "Vera" instead of "True".
This commit is contained in:
@@ -1081,7 +1081,7 @@ void main ()
|
|||||||
// Check whether the user is not using the Rescue Disk to create a hidden system
|
// Check whether the user is not using the Rescue Disk to create a hidden system
|
||||||
|
|
||||||
if (ReadWriteMBR (false, BootDrive, true) == BiosResultSuccess
|
if (ReadWriteMBR (false, BootDrive, true) == BiosResultSuccess
|
||||||
&& *(uint32 *) (SectorBuffer + 6) == 0x65757254
|
&& *(uint32 *) (SectorBuffer + 6) == 0x61726556
|
||||||
&& *(uint32 *) (SectorBuffer + 10) == 0x70797243
|
&& *(uint32 *) (SectorBuffer + 10) == 0x70797243
|
||||||
&& (SectorBuffer[TC_BOOT_SECTOR_CONFIG_OFFSET] & TC_BOOT_CFG_MASK_HIDDEN_OS_CREATION_PHASE) != TC_HIDDEN_OS_CREATION_PHASE_NONE)
|
&& (SectorBuffer[TC_BOOT_SECTOR_CONFIG_OFFSET] & TC_BOOT_CFG_MASK_HIDDEN_OS_CREATION_PHASE) != TC_HIDDEN_OS_CREATION_PHASE_NONE)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user