learntofly83 / iphone-dataprotection

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

ios_examiner.py crash on invalid filename (?) #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Probably trying to undelete a file with (e.g.) '?' in its name.

What do you see instead?
http___init.gc.apple.com_WebObjects_GKInit.woa_wa_getBag?ix=1
35 versions for first lba
[191442, 191449, 191450, 191459, 191521]
Recovered 235339:http___init.gc.apple.com_WebObjects_GKInit.woa_wa_getBag?ix=1 
0 missing pages, size 25KB, created xxxx-xx-xx xx:xx:xx, contentModDate 
xxxx-xx-xx xx:xx:xx
Traceback (most recent call last):
  File "x:\xxxx\python_scripts\ios_examiner.py", line 366, in <module>
    main()
  File "x:\xxxx\python_scripts\ios_examiner.py", line 363, in main
    ExaminerShell(image).cmdloop("")
  File "C:\Program Files\Python\lib\cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "C:\Program Files\Python\lib\cmd.py", line 219, in onecmd
    return func(arg)
  File "x:\xxxx\python_scripts\ios_examiner.py", line 229, in do_undelete
    self.carver.carveDeletedFiles_fast(z, f)
  File "x:\xxxx\python_scripts\nand\carver.py", line 223, in carveDeletedFiles_fast
  File "x:\xxxx\python_scripts\nand\carver.py", line 349, in readFileHax
  File "x:\xxxx\python_scripts\nand\carver.py", line 128, in writeUndeletedFile
IOError: [Errno 22] invalid mode ('wb') or filename: 
u'\\xxxx\\undelete/OK_235339_191442_http___init.gc.apple.com_WebObjects_GKInit.w
oa_wa_getBag?ix=1'

What version of the product are you using? On what operating system?
OS version : Windows XP
Tools revision : r8c6b79b04374

Original issue reported on code.google.com by afbaa...@gmail.com on 13 Jan 2013 at 9:42

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 8e7bd876fb9a.

Original comment by jean.sig...@gmail.com on 14 Jan 2013 at 3:18

GoogleCodeExporter commented 9 years ago
OK, just commited a patch to filter invalid characters. Let me know if that 
fixes your issue. Thanks.

Original comment by jean.sig...@gmail.com on 14 Jan 2013 at 3:22

GoogleCodeExporter commented 9 years ago
Yes, perfectly! Thank you :)

Original comment by afbaa...@gmail.com on 15 Jan 2013 at 4:46

GoogleCodeExporter commented 9 years ago

Original comment by jean.sig...@gmail.com on 26 Jan 2013 at 10:55