kalyanraju-m / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 1 forks source link

Run backup_tool.py on windows #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Download and install Python 2.6 in C:\Python26 folder.
2. Add C:\Python26 to system PATH environment variable.
3. Install python dependencies - setuptools, M2Crypto, pycrypto & pyqt
4. Download progressbar-2.3.rar and extract it to c:\ drive. From command 
prompt navigate to c:\progressbar-2.3 and type the below command.

cd progressbar-2.3
python setup.py install

10. Download construct-2.06.rar and extract it to c:\ drive. From command 
prompt navigate to c:\construct-2.06 folder and type the below command.

cd construct-2.06
python setup.py install

11. From command prompt, navigate to iphone-dataprotection folder and run 
backup_tool.py   

cd iphone-dataprotection
python python_scripts/backup_tool.py  C:\Users\[user 
name]\AppData\Roaming\Apple Computer\MobileSync\Backup\[UDID]\ C:\Users\[user 
name]\AppData\Roaming\Apple Com

out put is coming an error message as below:

Traceback (most recent call last):
  File "D:\iphone-dataprotection-53f2f88bc236\iphone-dataprotection-53f2f88bc236\python_scripts\backup_tool.py", line 1, in <module>
    from backups.backup3 import decrypt_backup3
OverflowError: modification time overflows a 4 byte field
>>> 

Original issue reported on code.google.com by vipinkum...@gmail.com on 21 Mar 2014 at 7:37

GoogleCodeExporter commented 9 years ago
Try using python 2.7 instead of 2.6, see http://bugs.python.org/issue11235

Original comment by jean.sig...@gmail.com on 21 Mar 2014 at 10:03

GoogleCodeExporter commented 9 years ago
thanks for quick reply i am success to run it with 2.6 but after enter the 
password for of iTunes script  fail in between and only some kb of data extract 
in output folder 

error in backup4.py 
    f2 = file(output_path, 'wb') is open in wrong mode or file (output_path)does not exist.

pls help me . and my basic need is to decrypt the sqlite file data and other 
file data. if any other method for doing this then pls tell me 

thanks.

Original comment by vipinkum...@gmail.com on 21 Mar 2014 at 10:30

GoogleCodeExporter commented 9 years ago
can you post the exact error ? thanks

Original comment by jean.sig...@gmail.com on 21 Mar 2014 at 1:04

GoogleCodeExporter commented 9 years ago
I m attaching error  image  pls tell me where i m wrong and what to do for this 
error.

errorno-22 

thanks 

Original comment by vipinkum...@gmail.com on 25 Mar 2014 at 3:31

Attachments:

GoogleCodeExporter commented 9 years ago
dear sir , what is exact problem i a not able to understand .
my basic need is to decrypt the sqlite file data and other file data. if any 
other method for doing this then pls tell me 

Original comment by vipinkum...@gmail.com on 26 Mar 2014 at 3:39

GoogleCodeExporter commented 9 years ago
try replacing the file python_scripts/backups/backup4.py with the one attached. 
the script did not handle properly invalid characters in filenames on Windows. 
thanks for reporting the issue.

Original comment by jean.sig...@gmail.com on 26 Mar 2014 at 9:53

Attachments:

GoogleCodeExporter commented 9 years ago
thanks it works could you tell me can i integrate these python script to my 
vc++ visual studio application  actually  i want to decrypt this backup through 
c or c++ application .

thanks a lot

Original comment by vipinkum...@gmail.com on 26 Mar 2014 at 10:50

GoogleCodeExporter commented 9 years ago
feel free to integrate this code in your application, although ihmo it would 
probably be cleaner to rewrite it in C/C++

Original comment by jean.sig...@gmail.com on 27 Mar 2014 at 10:03

GoogleCodeExporter commented 9 years ago
Hi ,

Thanks for helping me. but i have no idea how  i can  integrate  these python 
script to c/c++ code pls help me and give me some idea ..

Original comment by vipinkum...@gmail.com on 31 Mar 2014 at 5:58

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 985517386b26.

Original comment by jean.sig...@gmail.com on 2 Apr 2014 at 4:24

GoogleCodeExporter commented 9 years ago
Dear Sir,

i am now able to work with these script and able to use in my application the 
only issue is that i have no idea about python script and  now i have one issue 
i want to store all decrypted files with same name as in backup i dont want to 
decode there name (sha). data is decrypted but file name is same as in original 
backup folder as 

i need file store with name 31bb7ba8914766d4ba40d6dfb6113c8b614be442 in place 
of HomeDomain-Library/AddressBook/AddressBook.sqlitedb

could you tell me where i need to change in my script .

thanks a lot.

Original comment by vipinkum...@gmail.com on 9 Apr 2014 at 3:34

GoogleCodeExporter commented 9 years ago
try applying this patch

Original comment by jean.sig...@gmail.com on 13 Apr 2014 at 10:59

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Sir ,

 Please tell me  as i use py2exe for make a executable from these script  and  it is successfully work for me i want to know that  can i distribute these executable with my application . 

Original comment by vipinkum...@gmail.com on 28 Apr 2014 at 8:50

GoogleCodeExporter commented 9 years ago
yes no problem

Original comment by jean.sig...@gmail.com on 29 Apr 2014 at 9:02

GoogleCodeExporter commented 9 years ago
Issue 139 has been merged into this issue.

Original comment by jean.sig...@gmail.com on 29 Apr 2014 at 9:02

GoogleCodeExporter commented 9 years ago
Dear Sir,

Can we decrypt i cloud backup also with these scripts. 

Original comment by vipinkum...@gmail.com on 29 Apr 2014 at 10:38

GoogleCodeExporter commented 9 years ago
no icloud backups are not supported

Original comment by jean.sig...@gmail.com on 29 Apr 2014 at 11:10

GoogleCodeExporter commented 9 years ago
Dear Sir pls provide  any help/idea regarding icloud backups decryption

Original comment by vipinkum...@gmail.com on 29 Apr 2014 at 11:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Sir,

 I have update devices to ios 8 and now decryption of backup files and icloud  backup files data is not done  so please help me out where to change  for ios 8.

it working fine on ios 7  but fail  script on ios 8 pls help  ..

thanks 

Original comment by vipinkum...@gmail.com on 16 Dec 2014 at 2:48

GoogleCodeExporter commented 9 years ago
hello sir,
i had tried to restore the iphone by .ipsw firmware by the update of this dat 
protection code (DataRecovery.py). i had tried to debug the code but i found a 
problem in line 

if (sha1(open(IPSW_files[devices[self.iThing][1]] + '/' + 
devices[self.iThing][1]).read()).hexdigest()) == devices[self.iThing][5]: # 
Uses 700 mb of memory... will fix later

this condition i am not able to debug this code and my code goes in else part 
of this condition and ask me to download firmware again as sha1 did not checked 
out

Original comment by prateek....@gmail.com on 11 Feb 2015 at 11:21

GoogleCodeExporter commented 9 years ago
Dear Sir,
 pls provide Help on Restore devices to factory settings i am using DataRecovery.py but is fail and same message as  prateek....@gmail.com .

Please Help me.

Thanks.

Original comment by vipinkum...@gmail.com on 11 Feb 2015 at 11:27