Exploring iPhone OS 2 files
Update: This technique also works with iPhone OS 3.x. You will find the VFDecrypt keys on The iPhone Wiki Firmware page. Just select the appropriate iPhone model and Version/Build of your firmware.
It turns out to be pretty simple:
- Download iPhone OS 2.0.2 (5C1)
curl -O http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-5241.20080818.t5Fv3/iPhone1,2_2.0.2_5C1_Restore.ipsw - Unzip the ipsw which is actually a zip file
unzip iPhone1,2_2.0.2_5C1_Restore.ipsw - Download vfdecrypt
svn co http://iphone-elite.googlecode.com/svn/trunk iphone-elite - Compile vfdecrypt
make -C iphone-elite/vfdecrypt_win32 - Decrypt the dmg (key from The iPhone Wiki)
./iphone-elite/vfdecrypt_win32/vfdecrypt -i 018-3978-1.dmg -k 31e3ff09ff046d5237187346ee893015354d2135e3f0f39480be63dd2a18444961c2da5d -o iPhoneOS-2.0.2.dmg - Mount iPhone OS dmg and start exploring
open iPhoneOS-2.0.2.dmg