SmartCloud783 / iphone-dataprotection

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

ios_examiner.py: AssertionError #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. NAND acquisition (successful)
2. python python_scripts/ios_examiner.py my3gs_nand.bin my3gs.plist

What is the expected output? What do you see instead?

Instead of ios_examiner shell, I get this:

Loading device information from my3gs.plist
Device model: iPhone 3GS
UDID: **hidden**
ECID: **hidden**
Serial number: **hidden**
key835: **hidden**
key89B: **hidden**
Chip id **hidden** banks per CE physical 2
NAND geometry : 32GB (4 CEs (2 physical banks/CE) of 8296 blocks of 128 pages 
of 8192 bytes data, 12 bytes metdata)
Image size matches expected size, looks ok
Searching for special pages...
Found  special pages in CE 0
Device does not boot from NAND (=> has a NOR)
NANDDRIVERSIGN not found, assuming metadata withening = 0
Using VSVFL
VSVFL context open OK
YaFTL context OK, version=CX01 maxIndexUsn=1430567 context usn=1430567
LwVM header CRC OK
Traceback (most recent call last):
  File "python_scripts/ios_examiner.py", line 366, in <module>
    main()
  File "python_scripts/ios_examiner.py", line 363, in main
    ExaminerShell(image).cmdloop("")
  File "python_scripts/ios_examiner.py", line 87, in __init__
    self.system = image.getPartitionVolume(0)
  File "/Users/giovi/pwnage/iphone-dataprotection/python_scripts/nand/nand.py", line 318, in getPartitionVolume
    return HFSVolume(bdev)
  File "/Users/giovi/pwnage/iphone-dataprotection/python_scripts/hfs/hfs.py", line 103, in __init__
    assert self.header.signature == 0x4858 or self.header.signature == 0x482B
AssertionError

What version of the product are you using? On what operating system?

Lion 10.7.4, iPhone 3GS 5.1.1 32GB, Xcode 4.3.3, Python 2.7.1

Original issue reported on code.google.com by grapple...@gmail.com on 13 Jul 2012 at 11:34

GoogleCodeExporter commented 8 years ago
When you ran ios_examiner.py without parameters the first time, there was no 
error ?
Can you post the output of ios_examiner.py without parameters and the chip id 
from this line (this is not unique to your device) :
Chip id **hidden** banks per CE physical 2

When you boot the ramdisk it should display text like this :

NAND configuration: 32GB (4 CEs (2 physical banks/CE) of 8296 blocks of 128 
pages of 8192 bytes data, 12 bytes metdata)
Found DEVICEINFOBBT at page xxx, banksPerCEphyiscal=xxx
NAND dumper listening on port 2000

Can you check if the line starting with "Found DEVICEINFOBBT" is displayed and 
the value for banksPerCEphyiscal ?
Thanks

Original comment by jean.sig...@gmail.com on 13 Jul 2012 at 11:57

GoogleCodeExporter commented 8 years ago
Ok there was a bug in the nand dumper, you'll have to rebuild the ramdisk and 
reacquire the nand image with this patch : 
http://code.google.com/p/iphone-dataprotection/source/detail?r=2112108faf0485977
7bf7bdfeaf7155644e697f6
This time the "Found DEVICEINFOBBT" message should be displayed correctly. 
Sorry for the inconvenience.

Original comment by jean.sig...@gmail.com on 13 Jul 2012 at 12:07

GoogleCodeExporter commented 8 years ago
No problem, now it works... Thanks for the quick fix!

Original comment by grapple...@gmail.com on 13 Jul 2012 at 4:31

GoogleCodeExporter commented 8 years ago

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