Liveblogging the big iPhone 1.1.1 hack

Last night, iPhone hackers "dinopio" and "Edgan" brought 1.1.1 hacking into a new arena. By using symbolic links before doing a 1.1.1 upgrade, they were able to gain access to the entire 1.1.1 file tree. Today, I'll be liveblogging my attempt to duplicate their hack. So sit back and reload as I put my poor iPhone to the test.
Ingredients
One iPhone, still at version 1.0.2 with ssh access.
One 1.1.1 iPhone upgrade, still not applied.
Firmware for 1.0.2 for downgrading.
iPhuc
The basic method
1. Using ssh: cd /var/root
2. mv Media backup
3. ln -s / Media
4. Upgrade to 1.1.1
5. Upse iphuc to access the changes and hopefully get execute access.
Getting started
10:13 AM. My 1.0.2 iPhone is sitting here next to me. It is running ssh and I'm ready to start the hack. I do the linking method as follows:
=% cd =% pwd
/private/var/root
=% mv Media backup
=% ln -s / Media
=% I've now closed the shell and attached the iPhone to my Mac and am about to start the upgrade. Man, it really physically repels me to hit that Update button... The fear. The uncertainty. The doubt.
The iPhone upgrade
10:20 AM. Right now it's extracting software and getting ready to do the install. I have never unlocked this phone so I'm hoping the update will proceed smoothly. Lets see if I get bricked or not.
10:22 AM. It's "Updating iPhone software..." now.
10:23 AM. Verifying updated iPhone software. Oh noes! I can has the 1.1.1 upgrade now?
10:24 AM. Updating iPhone firmware...Pleasant elevator music plays in the background. (Because every great hack must be accompanied by elevator music.)
10:26 AM: Your iPhone has been updated, and is restarting. Activate iPhone, connect to iTunes.
10:27 AM: Wrong SIM!!!!! Oh man. (Trust me, it's a pure AT&T SIM on a pure AT&T account.)
10:28 AM: I pull the phone out of the dock and then I reconnect to iTunes. iTunes could not connect to the iPhone "Bologna" because of an unknown error occurred.
10:29 AM: Switching to my Intel Mac from my G4 Mac
10:32 AM: I have the full tree. Getting screen shot now. The phone is not activated but iPhuc connects to it without trouble. w00t!
In the land of the iphuccers
We have Mobile Music Store!
Putting all the screen shots here is going to be pretty cumbersome. Here's a gallery.
MobileStore.app
Next on my agenda is getting a clean copy of MobileStore.app. So I've written a script to try to grab all the files in that folder. Testing now.
10:52. Looks like I've gotten the entire MobileStore.app off the iPhone. It's hard to test, of course. What I did was use iphuc's script ability. I basically did a list of all the contents in the app and then wrote a script to cd into the proper folder and copy those files to my mac. If you want an example of how to do this, see my command-line media utilities.
Testing Read/Write
I create a file on my mac, called test.txt. In it, it just says "THIS IS A TEST". I copy it to /var/root with iphuc. It works.
Next, I delete it from the mac. Copy back from iphuc.
Yes, it copied back correctly. I delete it again, copy back, check. The /var/root section (at least) is writable and readable.
Happiness
Whee! (This section brought to you by reader Joe Maller)
File system stuff
On Dinopio's suggestion, I take a look at fstab:
% cat newfstab /dev/disk0s1 / hfs ro 0 1
/dev/disk0s2 /private/var hfs rw,noexec 0 2 I've now run iPhoneDisk--and no, no kernel panics today yet--and mounted the iphone to /Volumes/Media. Pictures here and here.
I'm now trying to copy the entire file system to my mac. Ditto failed, so I'm copying via drag and drop. Will report back on progress.
Responding to readers
Right now, I can't get executable access to the iPhone disk. I can put files into the media partition, but it's "noexec" and I can't yet change fstab. So I cannot do screen shots from the iPhone--or get shell access either. Everything right now is being done through AFC.
Testing the Music store on 1.0.2
I've tracked down a tester who is going to test the mobile store app on a 1.0.2 system. On my insistence, he has sworn not to distribute the application. The goal here is not to start throwing around copyright material but rather to be able to get everyone up to 1.1.1 without losing shell access and third party applications.
Unfortunately, it doesn't work. It hangs for a few seconds and then goes back to the home screen. Either it's missing some 1.1.1 frameworks or it needs authentication a la YouTube. So the 1.0.2/mobile music store experiment is, for the moment, a bust.
Looking at the file system
Stripped down even more than last time. Guess what's in /bin? One thing: launchctl.
iPhoneDisk
My attempts to copy files with iPhoneDisk failed. It's just too flakey, too alpha, too many bugs.
Responding to Readers
Can you add ringtones to a 1.1.1 iPhone this way? Probably yes. But you need to stick your ringtones into /private/var/root/Library/Ringtones because there's currently no write access to /Library/Ringtones.
No, I haven't gotten my iPhone activated--and I'm not sure that's going to happen. Which kinda ticks me off since I'm paying AT&T $50-odd each month.
Reader pmppk writes: Just wanted to add that I don't think that ringtones will work this way. I had a couple ringtones in my /var/root/Library/Ringtones before I updated. The contacts that they were assigned to retained them with the prefix "user:", but they weren't browseable in any of the ringtone menus
Lockdown folder
The lockdown folder (/System/Library/Lockdown) has a lot more items than in previous versions. You can take a peek at the contents here.
Just a reminder: /System/Library/Lockdown is currently read only.
Bleg
What we really need right now is a version of iphuc that does recursive file copies. If there are any C++ wizards out there who can help, please visit the iPhuc repository and update the code to do that? Thanks!
Don't feel that you need read access to the repository. If you write it, I will use it!
Update
Right now, I'm writing a series of shell scripts to run iPhuc to get files, list folders, etc. I've given up completely on the (utterly flakey) iPhoneDisk.
Writing these routines will take a while. I'll be back later in a separate post to let you know the results. That's it for this morning live-blog wise. Things are moving fast, so I'll keep you up to date.
Share
Source: http://tuaw.com/category/iphone
Last night, iPhone hackers "dinopio" and "Edgan" brought 1.1.1 hacking into a new arena. By using symbolic links before doing a 1.1.1...
Add a Comment
Am Screwed !!!, Please Help, Please Please Help, I have an iphone which i got with 1.0.2 firmware and i worked my way throught to 1.1.1 then by mistake to 1.1.2, in my stupid attempt to fix it, i used iBrick 09 somthin, and the stupid thing must have deleted some startup files, because now everytime i try to switch it on, it take me thorough terminal thing with words and codes flowing, and the black screen with the grey shine apple and it don't load, it restarts !!! , please help !!!
November 20 2007 at 12:48 AM Report abuse Permalink rate up rate down ReplyHey easymac, what have you done for the dev community lately?
Geez, what is the deal with people and their sense of entitlement nowadays?
Why don't you STFU and get back to salting the fries.
you mention not having execute access....does that mean that you do have write ability?
just a curiosity....im not sure if the directory / file structure is the same as the old BSD/OS that mac os X is based on, but if its the same, here is an idea to try.
if you can write to the system
perhaps you can edit the the /etc/inetd.conf and add a telnet application to the boot list. :)
i guess you will also need to be able to upload a compatable telnetd app to a bin dir on the Pod.
or possable, you should just try a simple shell app, something that wont search for your password.....maybe the "csh" shell or something
i would love a telnet app on my ipod.
iPhone 1.1.1 Hack is out in India by a guy named Imran Sayed
Read it here:
http://IndyChai.com
Is there anyway to email me the new icons for Calculato & the MobileStore.app? I'd like to try & convert them from their weird version of png to the normal png format
October 07 2007 at 5:16 PM Report abuse Permalink rate up rate down Reply@ Bay --> You First lol
October 07 2007 at 3:56 PM Report abuse Permalink rate up rate down ReplyUm, this would be marginally useful if you'd updated it some time in the last 2 f***ing days.
I don't expect that you've solved the problems, I just want to know what you HAVE done.
Does Apple OS' have a sudoers file? Seems to me if it did, then you could create another profile with root authority. Then after the 1.1.1 upgrade you could use it instead of root to make permission changes.
Never I had firmware 1.1.1 on my iphone.
It was unlocked on firmware 1.0.2
Last time I made restore from my hard drive 1.0.2 .
Forget turn off ituneshelper.exe
and now i have firmware 1.0.2 + BUG
nothing work ibrick not work apptapp not work
look :
http://youtube.com/watch?v=1AUK36ubYyk
What is wrong?
sorry for my english i'm from poland
re: music store on 1.0.2
seriously are the people that want to hack their iphones really people that give two shts about the Wifi Music Store ?
i don't mean to pigeon hole and stereotype here but, people that spend their time trying to hack 3rd party apps on to their iphone don't appear to me to be the kind of people that would really care about the additional hassle of buying music on their mac then transfering it.
hell, if i was hacking apps on to my iphone (in uk, can't wait until nov 9th) i'd want a VNC client so whilst i'm away from home i can login to my home Mac, buy music from the itunes store, then download it to my phone!
Hot Apps on TUAW
Deals of the Day
more deals- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



118 Comments