# LAB - iOS: Hardcoded Secrets

## Lab Environment

In this lab environment, you will get access to a Debian machine, which has all the required tools installed on it for this lab, along with an IPA file.

**Objective:** Perform static analysis on the IPA file to find the hardcoded API key.

The following file can be useful:

* reqnest.ipa: Present on the "Desktop".

### Tools

* unzip
* strings
* grep

## Flag

* What is a hardcoded API key value?

We can see into the Desktop folder a file with name "`reqnest.ipa`", unzip it -->

```
cd Desktop
ls
unzip reqnest.ipa
```

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

Into this zip/ipa we can see a reqnest filne, so use `strings` to read leggible words -->

```
strings reqnest | grep api
```

<figure><img src="/files/Sy6IQqqGwIpvUnKsz9Z9" alt=""><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://eldeim.gitbook.io/brain_fuck/notes/certifications/eastereggs/ine-emapt/mobile-application-penetration-static-analysis/lab-ios-hardcoded-secrets.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.
