Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run backup_tool.py on windows #133

Open
GoogleCodeExporter opened this issue Aug 1, 2015 · 23 comments
Open

Run backup_tool.py on windows #133

GoogleCodeExporter opened this issue Aug 1, 2015 · 23 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 21 Mar 2014 at 7:37

@GoogleCodeExporter
Copy link
Author

Try using python 2.7 instead of 2.6, see http://bugs.python.org/issue11235

Original comment by [email protected] on 21 Mar 2014 at 10:03

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 21 Mar 2014 at 10:30

@GoogleCodeExporter
Copy link
Author

can you post the exact error ? thanks

Original comment by [email protected] on 21 Mar 2014 at 1:04

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 25 Mar 2014 at 3:31

Attachments:

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 26 Mar 2014 at 3:39

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 26 Mar 2014 at 9:53

Attachments:

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 26 Mar 2014 at 10:50

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 27 Mar 2014 at 10:03

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 31 Mar 2014 at 5:58

@GoogleCodeExporter
Copy link
Author

This issue was updated by revision 985517386b26.

Original comment by [email protected] on 2 Apr 2014 at 4:24

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 9 Apr 2014 at 3:34

@GoogleCodeExporter
Copy link
Author

try applying this patch

Original comment by [email protected] on 13 Apr 2014 at 10:59

Attachments:

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 Apr 2014 at 8:50

@GoogleCodeExporter
Copy link
Author

yes no problem

Original comment by [email protected] on 29 Apr 2014 at 9:02

@GoogleCodeExporter
Copy link
Author

Issue 139 has been merged into this issue.

Original comment by [email protected] on 29 Apr 2014 at 9:02

@GoogleCodeExporter
Copy link
Author

Dear Sir,

Can we decrypt i cloud backup also with these scripts. 

Original comment by [email protected] on 29 Apr 2014 at 10:38

@GoogleCodeExporter
Copy link
Author

no icloud backups are not supported

Original comment by [email protected] on 29 Apr 2014 at 11:10

@GoogleCodeExporter
Copy link
Author

Dear Sir pls provide  any help/idea regarding icloud backups decryption

Original comment by [email protected] on 29 Apr 2014 at 11:29

@GoogleCodeExporter
Copy link
Author

[deleted comment]

1 similar comment
@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 16 Dec 2014 at 2:48

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 11 Feb 2015 at 11:21

@GoogleCodeExporter
Copy link
Author

Dear Sir,
 pls provide Help on Restore devices to factory settings i am using DataRecovery.py but is fail and same message as  [email protected] .

Please Help me.

Thanks.

Original comment by [email protected] on 11 Feb 2015 at 11:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant