Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Cryptic file names in iPhone backup

by bitingduck (Chaplain)
on Feb 17, 2015 at 16:07 UTC ( #1117001=note: print w/replies, xml ) Need Help??


in reply to Cryptic file names in iPhone backup

This is really more of an iOS question than a Perl question, but you can use Perl to sort of figure them out.

A little bit of searching indicates that the filenames are all SHA1 hashes of their "domain" and full file path separated by a dash, so that you can use Digest::SHA1 to do something like

my $data= $domain."-".$path; $digest = sha1($data);
and then compare $digest to filenames to see if you get the same thing. Since hashes are one-way functions (i.e. you can't run the algorithm backward to get the input information) you have to brute force it by guessing and hashing or use some google-fu to sort out details of the naming.

There's a little more information here: http://resources.infosecinstitute.com/ios-5-backups-part-1/, but some more time spent searching will probably find you what you need.

Replies are listed 'Best First'.
Re^2: Cryptic file names in iPhone backup
by marek1703 (Acolyte) on Feb 17, 2015 at 18:10 UTC

    Thank you roboticus and biting duck

    This is a great help. I will look into your suggestions tomorrow!

    marek

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1117001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-11-14 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (178 votes). Check out past polls.

    Notices?