sock-puppet / iphone-dataprotection

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

Error when running ./bruteforce and ./data_partition #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./bruteforce on an iPad1 running 4.3.1
2.
3.

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

When running ./bruteforce on an iPad running 4.3.1 I get the following error.

CoreFoundation: failed to dynamically link symbol _CFSocketStreamCreatePair
CoreFoundation: failed to dynamically link symbol _CFErrorCreateWithStreamError
CoreFoundation: failed to dynamically link symbol _CFStreamErrorFromCFError

The passcode does go on to be cracked the passcode key and the 0x835 key get 
printed to the screen, once the passcode is found I get the same three errors 
printed to the console.

I also get the same three errors when using the ./data_partition command.

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

OSX 10.6.7, tools compiled using iOS4.2 SDK.

Please provide any additional information below.

When compiling the ramdisk_tools I got a lot of errors relating to IOKit and 
IOKit\IOKitLib.h to overcome this I had to copy the IOKit.Framework from the 
iOS Simulator PrivateFramework folder into the iOSPlatform. Trying to compile 
with this configuration gets me errors about IOKit being compiled for the wrong 
framework, to resolve this error I copied the IOKit binary from the 
/System/Library/IOKit.Framework folder into the IOKit.Framework folder on my 
Mac and the code correctly compiled.

Original issue reported on code.google.com by matthew....@gmail.com on 27 May 2011 at 6:31

GoogleCodeExporter commented 9 years ago
I just tried this again and didnt experience the same errors.

Interestingly when I run ./bruteforce it will not automatically mount the 
/dev/disk0s2 partition automatically. I get the following error:

-sh-4.0# ./bruteforce                
Trying to mount data partition
FAIL: mount /dev/disk0s2
FAILed to load keybag

If I then manually mount the partitions everything works ok.

Original comment by matthew....@gmail.com on 27 May 2011 at 7:51

GoogleCodeExporter commented 9 years ago
Hello,
Indeed the mounting code fails when the filesystem was not unmounted cleanly. I 
just pushed some code to correct the issue by running fsck on the data 
partition. 
For the "CoreFoundation: failed to dynamically link symbol" errors, these do 
not seem to prevent the programs from running correctly.

Thanks for your feedback

Original comment by jean.sig...@gmail.com on 27 May 2011 at 11:49

GoogleCodeExporter commented 9 years ago

Original comment by jean.sig...@gmail.com on 17 Jul 2011 at 2:57