See http://code.google.com/p/iphone-dataprotection/wiki/README

#Usage

It works using OSX and the following:

To run it, execute "boot.py" script.

#Compilation instructions

In order to compile ramdisk tools, you need to follow the next steps:

Installation

Santoku Linux

sudo apt-get install swig

sudo apt-get install python-pip

sudo pip install progressbar
sudo pip install setuptools
sudo pip install construct==2.5.3
sudo pip install pyasn1

OSX

sudo mkdir -p /usr/local/bin
curl -O http://networkpx.googlecode.com/files/ldid $ chmod +x ldid
sudo mv ldid /usr/local/bin
which codesign_allocate 
/usr/bin/codesign_allocate
sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/local/bin/codesign_allocate

brew install swig

git clone https://github.com/M2Crypto/
python setup.py build build_ext --openssl=/usr/local/Cellar/openssl/1.0.2/
sudo python setup.py install build_ext --openssl=/usr/local/Cellar/openssl/1.0.2
pip install progressbar 
pip install setuptools
pip install construct
pip install pyasn1
pip install M2Crypto-0.21.1-py2.7-macosx-10.9-intel.egg
curl -O http://chandlerproject.org/pub/Projects/MeTooCrypto/M2Crypto-0.21.1-py2.7-macosx-10.9-intel.egg
sudo easy_install M2Crypto-0.21.1-py2.7-macosx-10.9-intel.egg

sudo ARCHFLAGS='-arch i386 -arch x86_64' easy_install pycrypto

ln -s redsn0w_mac_0.9.15b3/redsn0w.app/Contents/MacOS/Keys.plist .

brew install openssl

cd img3fs
make

sudo ln -s /Applications/Xcode.app/Contents/Developer/ /Developer

#References http://www.dinosec.com/docs/Apple%20iOS%20Key%20Recovery%20with%20iPhone%20Data%20Protection%20Tools%2020121003.pdf