> For the complete documentation index, see [llms.txt](https://www.marialc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.marialc.com/pentesterlab-labs/recon-badge/recon_24-assets.md).

# recon\_24 (assets)

View the exercise here: [PentesterLab: Recon 24](https://pentesterlab.com/exercises/recon_24/course)

### **OBJECTIVE**

For this challenge, your goal is to look at the server used to load assets (JavaScript, CSS) and find a file named **key.txt**.

### **WHY?**

It's essential to look for files that may be publicly available on the servers used to load assets.

### **SOLUTION**

`View Page Source` of `hackycorp.com`

Click `//assets.hackycorp.com/vendor…`

<figure><img src="https://290105472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F89FZKOizBQcf0e0Qdrp8%2Fuploads%2FTVdib3U6SPNqiDMsie2c%2FScreenshot_2024-08-22_at_13.16.56.png?alt=media&amp;token=5e5baab9-9756-4aa7-babf-8350afff4063" alt=""><figcaption></figcaption></figure>

Remove `view-source:` prefix of the URL

<figure><img src="https://290105472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F89FZKOizBQcf0e0Qdrp8%2Fuploads%2FrAfoKTTwE7b9JsmQe0HL%2FScreenshot_2024-08-22_at_13.17.50.png?alt=media&amp;token=c0d5564d-2e53-41e6-bca6-34e927f45a58" alt=""><figcaption></figcaption></figure>

From the objectives, it says that the file name is `key.txt`

<figure><img src="https://290105472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F89FZKOizBQcf0e0Qdrp8%2Fuploads%2FCmxM4wT6q5kQyLYWvUFt%2FScreenshot_2024-08-22_at_13.18.29.png?alt=media&amp;token=56e05cbc-0596-4df2-9f68-5c7d6e600155" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Append **`/key.txt`** in the URL to see the flag
{% endhint %}

<figure><img src="https://290105472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F89FZKOizBQcf0e0Qdrp8%2Fuploads%2Fsz9wmTGsK20J2zFBZagQ%2Fimage.png?alt=media&amp;token=3e345fa7-f6a2-4690-8b4f-dbd5f831e004" alt="" width="563"><figcaption></figcaption></figure>
