> 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_22-deleted-file.md).

# 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="https://290105472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F89FZKOizBQcf0e0Qdrp8%2Fuploads%2FDNBuajgWPR9FyWNtvH9o%2FScreenshot_2024-08-22_at_12.28.42.png?alt=media&amp;token=8be9649c-0995-4a89-b5b1-8e3e6f5a6be4" alt=""><figcaption></figcaption></figure>

To copy `repo9` on our machine:

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

<figure><img src="https://290105472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F89FZKOizBQcf0e0Qdrp8%2Fuploads%2FumsQcj08oBgAdNKMiFMe%2FScreenshot_2024-08-22_at_12.41.28.png?alt=media&amp;token=8407f959-cefe-49cf-b010-2965b4513dd8" 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="https://290105472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F89FZKOizBQcf0e0Qdrp8%2Fuploads%2FCCmcPNMewDTxljpX1MaO%2FScreenshot_2024-08-22_at_12.42.15.png?alt=media&amp;token=61d5f9b8-4aec-433b-b781-23615f42029b" 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="https://290105472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F89FZKOizBQcf0e0Qdrp8%2Fuploads%2Fc7ZAydIoYHzYrN8xVajZ%2Fimage.png?alt=media&amp;token=4563492e-ce10-4990-ad5e-c72e22738c41" alt="" width="563"><figcaption></figcaption></figure>
