# iOS Reverse Engineering

{% embed url="<https://habr.com/en/post/595797>" %}

## `ipa` package analysis

`ipa` is essentially a `zip` file.

## `ipa` file root structures

* `iTunes Artwork`--a PNG app icon for showing in iTunes and the App Store.
* `iTunesMetadata.plist`—Contains copyright information, release date, purchase date, name of the developer and company who created it, etc.
* `/Payload/Application.app`

> To repack the `ipa`, simple select the three files and folder listed above and right click and select compress. The `Archive.zip` you get can be install using `ideviceinstaller`. You can also rename the file name you wanted.

> You can also use script.

```
cd <the-directory-that-store-the-three-files-and-folder>
zip -0 -y -r out.ipa .
#or use
zip -0  --symlinks --recurse-paths out.ipa .
# the `out.ipa` is the result
```


---

# 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://wiki.smhuda.com/pentesting/application-security/mobile-security/ios/ios-reverse-engineering.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.
