dunhamsteve / ios

Utility to extract files and keychain information from iOS backups
Other
123 stars 28 forks source link

How to build/compile and use ? #9

Open avibrazil opened 5 years ago

avibrazil commented 5 years ago

I'm transferring all the backup files to a Linux box where is easier for me to build this tool. But how to build and actually use it ?

Thank you in advance

dunhamsteve commented 5 years ago

I use macos at the moment, but about a year ago I did verify that it worked on linux (even with a backup run on linux).

if you already have a recent version of Go installed (package golang-go on ubuntu), then to build this program do something like:

mkdir ~/go
export GOPATH=~/go
go get github.com/dunhamsteve/ios/cmd/irestore

The executable will be in ~/go/bin. The irestore program looks in ~/Library/Application Support/MobileSync/Backup, whose contents should match your mac.

Running irestore should list available backups. Choose and do

irestore NAME_OR_ID restore '*' DEST_DIR

This will extract all files from the backup. There are other options to list domains, restore a specific domain, or try to extract data from the keychain, which the README discusses.

Note that another bug report has suggested that this program only works with encrypted backups on recent versions of iOS. I don't have a lot of spare time and haven't investigated that yet.

hubert3 commented 1 year ago

As of Feb 2023 on macOS with go1.19.5 darwin/amd64 I used the following (since go get is deprecated):

go install github.com/dunhamsteve/ios/cmd/irestore@latest