> For the complete documentation index, see [llms.txt](https://hacking-3.gitbook.io/barre/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-3.gitbook.io/barre/write-up/hack-the-box/challenges/reversing/spookypass.md).

# SpookyPass

## **Preparation**

<figure><img src="/files/xfIODPrmoKMbYba57Jjn" alt=""><figcaption></figcaption></figure>

## **Resolution**

We check the file type and execute it to see what we are working with.

<figure><img src="/files/4Pbo3fdEGwDNxI2gfWCZ" alt=""><figcaption></figcaption></figure>

### **First method**

In this first method, we will use the `strings` command to view the visible parts of the binary in order to find the password.

<figure><img src="/files/OcMUyX8IOY9JU0FsEJ8U" alt=""><figcaption></figcaption></figure>

### **Second method**

We will use the `ltrace` command to see how the binary is executed, in order to search for variables or comparisons that contain the password.

<figure><img src="/files/xqDiPPMd0ymNtd7bIAzv" alt=""><figcaption></figcaption></figure>

### **Third method**

In this case, we will use the `radare2` tool.

<figure><img src="/files/tshZDb7jfxzGI2IQdiMa" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Ed3ZDvqayFAE1BWr4V3m" alt=""><figcaption></figcaption></figure>

## End

<figure><img src="/files/4DbBiTId7qmOKRvtoQJL" alt=""><figcaption></figcaption></figure>
