# recon\_22 (deleted file)

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

### **OBJECTIVE**

For this challenge, your goal is to find a file that has been deleted in repo9.

### **WHY?**

Often, when committing secrets by mistake, developers just remove the file and commit again. Leaving the information available for anyone willing to search for it.

### **SOLUTION**

Open `repo9`

<figure><img src="/files/3yH0jt5otGoqFtFJAoWT" alt=""><figcaption></figcaption></figure>

To copy `repo9` on our machine:

```bash
git clone https://guthub.com/hackycorp/repo9
```

<figure><img src="/files/rtCsVKgfkcxw0U0FrpGC" alt="" width="563"><figcaption></figcaption></figure>

{% code lineNumbers="true" %}

```bash
cd repo9
ls
```

{% endcode %}

{% hint style="info" %}

```bash
tig
```

* **Tig** is a text-mode interface for Git, allowing you to view and navigate Git repositories in a terminal. It provides a user-friendly way to browse commits, view diffs, and interact with your Git history, making it easier to manage your source code directly from the command line.
  {% endhint %}

<figure><img src="/files/cAqLSCD9cOkNYHIfzIhh" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="success" %}
Press `Enter` to see the details of the file.\
Press Up/Down arrow keys or scroll to check each file to see the flag.
{% endhint %}

<figure><img src="/files/VUuGJaOwdHzwL6oz2lxs" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://www.marialc.com/pentesterlab-labs/recon-badge/recon_22-deleted-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
