> For the complete documentation index, see [llms.txt](https://blog.s1rn3tz.ovh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.s1rn3tz.ovh/pentest-mobile/ios/stockage-de-donnees-non-securise-ios/backup-ios.md).

# Backup (IOS)

## Méthode

### Via iTunes/Finder

Contrairement aux appareils Android, il n'est pas possible d'effectuer un backup d'une application précise, les backups sont fait sur l'entièreté de l'appareil et se font depuis iTunes ou Finder.

{% hint style="warning" %}
**Note**: Désactiver l'option "**Encrypt local backup**" avant de faire un backup pour pouvoir l'analyser en texte clair.&#x20;
{% endhint %}

Une fois le backup effectué, utilisez la documentation suivante pour le retrouver dans l'appareil (car l'emplacement peut varier en fonction du modèle)

{% embed url="<https://support.apple.com/en-us/HT204215>" %}

{% hint style="warning" %}
**Note**: il se pourrait que vous rencontriez des erreurs en tentant d'ouvrir le fichier. (**Operation not permitted**)

Si c'est le cas, utilisez le [lien](http://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/) suivant pour apprendre comment au fichier les droits nécessaires.
{% endhint %}

Une fois cela fait, il reste alors à utiliser grep et autres outils afin te faire l'analyse du backup.

### Via libimobiledevice

Effectuer un backup:

```
$ idevicebackup2 encryption on "[PASSWORD]"
$ idevicebackup2 backup --full ~/Backups/
```

Restorer un backup:

```
$ idevicebackup2 restore \
  --system \
  --settings \
  --password "[PASSWORD]" \
  ~/Backups/

```

## Outils

### iMazing

iMazing est un utilitaire populaire pour faire du transfert de fichiers, des backups et autres extraction de données d'un IPhone à un PC.

Ressource: <https://imazing.com/>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://blog.s1rn3tz.ovh/pentest-mobile/ios/stockage-de-donnees-non-securise-ios/backup-ios.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
