> For the complete documentation index, see [llms.txt](https://alham-rizvi.gitbook.io/alhamrizvi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alham-rizvi.gitbook.io/alhamrizvi/picoctf-writeups/picoctf/forensics/bitlocker-1.md).

# Bitlocker-1 Writeup

We are given a file:

```
bitlocker-1.dd
```

```bash
bitlocker2john -i bitlocker-1.dd > hash.txt
```

This extracts hashes from the disk image.

Inside `hash.txt`, we focus on the **User Password hash**, because:

* Recovery keys are too long to brute-force
* User password is shorter and crackable

## Step 3 — Prepare Wordlist

Instead of using the full huge wordlist, we take a smaller chunk:

```bash
head -n 10000 /usr/share/wordlists/rockyou.txt > wordlist.txt
```

This saves time while still being effective.

```bash
hashcat -m 22100 -a 0 hash.txt wordlist.txt -w 3
```

Explanation:

* `-m 22100` → BitLocker hash mode
* `-a 0` → dictionary attack
* `-w 3` → faster processing

After a short time, we get:

```
Password: jacqueline
```

## Step 5 — Decrypt BitLocker Image

Now we use `dislocker` to unlock the disk.

First, create folders:

```bash
mkdir dislocker mount
```

Then run:

```bash
sudo dislocker -V bitlocker-1.dd -u"jacqueline" -- dislocker
```

This creates a file:

```
dislocker/dislocker-file
```

```bash
sudo mount -o loop dislocker/dislocker-file mount
```

Now go inside:

````bash
cd mount
ls
``

Search for flag:

```bash
grep -R "picoCTF" .
````

Or directly open files.

You will find:

```
picoCTF{us3_b3tt3r_p4ssw0rd5_pl5!_3242adb1}
```

## Step 8 — Cleanup (Optional)

```bash
sudo umount mount
sudo umount dislocker
```

```
picoCTF{us3_b3tt3r_p4ssw0rd5_pl5!_3242adb1}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://alham-rizvi.gitbook.io/alhamrizvi/picoctf-writeups/picoctf/forensics/bitlocker-1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
