Bitlocker & Time based policy bypass
Last updated
Last updated
Having the handy Linux live USB
Recovery key of the Bitlocker is known.
Bitlocker recovery key can be known from the official microsoft account website under machine info settings.
Here the user is not able to logon into the windows bitlocker protected system as the password is been forgotten.
Opening the system from the BIOS configuration mode to disable the secure boot policy if it is been enforced into the system. Our HP machine was protected by the HP secure boot policy so we have to disable it.
Changing the default boot order of the System and loading the Live USB (Linux) to boot the OS
Selecting the live USB mode to start the Linux OS
Here are the Bitlocker protected drives where the recovery keys are being known to us so we will be decrypting the drives.
Entering the recovery keys here and we are able to decrypt the drives.
here is the directory structure of the windows we are looking for directory :
Using the command "chntpw" to change the user settings of the windows file system.
Use the following command to enumerate the users present into the filesystem.
The "SAM," "Security," and "System" files in the Windows Registry store user accounts, security settings, and hardware information, respectively. They are crucial for system functionality and security. Modifying them without proper knowledge can cause issues.
making the command into the interactive mode using the following command given below to get options of the loaded hives.
selecting the user in our case 'Temp' selecting the RID : 3ed to select the corresponding user.
Under the user edit menu, select 1 to clear the password of the corresponding username.
There is prompt that the user password is successfully removed.
Here our account has the time based login restriction enforced so we have to open the system into recovery mode.
Then the pc should boot into this section select troubleshoot option.
Then advanced options
Select the command prompt option here if the bitlocker prompt is there then select skip for now button & boom we got the recovery shell X:windows/system32
on selecting the drive we got the error that the drive is bitlocker protected then we have to disable the bitlocker protection using the following command:
Yoo we have successfully unlocked the system volume encryption settings.
using the following command to replace the utility function present on the lock screen to open command prompt into the lock screen.
We got the shell clicking the accessibility button present on the right side of the lock screen.
listing out the users present into the system, use the following code:
Changing the password of the selected user.
Here we can see that the password is unlocked and the time based logon is set to all time access.
Login back to the system
We got the system back in. This is how we can remove the time based policy and also disable the bitlocker encryption to remove the password.