Re: Jailbreak iOS 4.0.1

iPhone & iPad discussions
.:: Preferred language(s): eng
.:: Permissions: Registered

Moderators: kabuki, fwilli

Post Reply
fwilli
Beginner
Posts: 15
Joined: Friday, 05.12.2008 10:49

Re: Jailbreak iOS 4.0.1

Post by fwilli »

Voilà,

Here is a small Guide for Jailbreaking the iPhone 3GS with iOS 4.0.1. Tested successfully on mine.

DON'T UPGRADE TO iOS 4.0.2 FOR THE TIME BEING!

Updated 12/08/2010 at 16:36Z: Install PDF Patch within Cydia : see the End of Topic


What's a jailbreak?

A jailbreak is simply the ability to run apps and use themes and tweaks not approved by Apple. Jailbreaking doesn't slow down your device or use any extra battery. A jailbreak lets your device be how you want it.

*1
First, you have to open the Safari Browser and enter the following Address:

http://www.jailbreakme.com

Image

You will then be redirected to a page looking like this one:

Image

All you have to do is slide to Jailbreak and it will start the process. It goes relatively fast.

Image

You will now have a new icon called Cydia.

It's the main Interface to manage the addon Packages not officialy accepted or denied by Apple. You will find a lot of Themes and very interesting Addons which in my eyes are very handy in certain cases which I will describe later on.

The main Interface looks like this:

Image

You will be asked to do some updates and you can accept them without a problem. It is a little bit like the official Apps of Apple which are updated regularily.

Voilà, Your iPhone is now Jailbreaked! Congratulations! :P

2*
One disadvantage now of the iPhone being Jailbreaken is that you (or somebody else) could access it via SSH via certain tools in order to hack it. In order to avoid this you will have to change the password of the SSH connection. The default password, well known by all the Hackers is alpine.

The recent spate of worm attacks in the past week has brought the focus on the importance of your root password.

Unlike feature phones, smartphones like the iPhone run on operating systems, which very much like our computer have administrator privileges.

It is hence that when the hackers get access to your iPhone's administrator account, they can lay their hands on anything that is on the iPhone. However, in a non-jailbroken device, this administrator account (called root) cannot be accessed as the iPhone has no console or terminal access and also does not run services like SSH.

But when an iPhone is jailbroken and SSH is turned on, it becomes imperative that you change the default password of your root since hackers now have an easy access to your iPhone. Here is a short guide on how to change your root password.


First, you will have to install OpenSSH within Cydia:
Step 1: Tap on the Cydia icon on your jailbroken iPhone to launch the application

Step 2: Open the 'Search' tab on the bottom of the screen and search for OpenSSH.

Image

Step 3: Tap on the 'Install' button and choose 'Confirm' to begin installation

Step 4: Once installation completes, tap on 'Close Window' button to finish the installation process.
Second:

(Unfortunately the following method is not working right now because the installed version of Mobile Terminal is not compatible with 4.0.1)
Instructions to Install Mobile Terminal:

Step 1: Tap on the Cydia icon on your jailbroken iPhone to launch the application

Step 2: Open the 'Sections' tab on the bottom of the screen and select 'Terminal Support'

Step 3: From the list of packages, select and open 'Mobile Terminal'

Step 4: Tap on the 'Install' button and choose 'Confirm' to begin installation

Step 5: Once installation completes, tap on 'Close Window' button to finish the installation process.
So you will have to use this method to install Mobile Terminal
Suite à la libération de l'iOS4 via jailbreakme un certains nombre d'utilisateurs souhaiterais installer Terminal Mobile sur leur iDevice.
Le problème est que actuellement la version proposée sur Cydia ne fonctionne pas sur l'iOS4. Il existe cependant une version 426 de Mobile Terminal qui elle fonctionne correctement.
Ce Tuto à donc pour but de vous montrer ou trouver et comment installer cette Version :

Image

A]-Téléchargement du Fichier .deb à installer :

Télécharger le fichier http://rapidshare.com/files/411926821/m ... al-426.deb sur votre PC

B]-Installation du Fichier :

A l'aide d'une connexion SSH via iPhone Tunnel Suite connectez-vous à votre i-phone par câble! Download here: http://rapidshare.com/files/411926996/I ... ite_v3.exe

Image

Once connected, Launch FileBrowser of iPhone Tunnel (right icon):

Image

1) Créez sur le iPhone le répertoire suivant : /private/var/root/Media/Cydia/AutoInstall (en respectant bien les majuscules)

Image

2) Copiez le fichier mobileTerminal-426.deb dans le répertoire /private/var/root/Media/Cydia/AutoInstall

3) Reboot du iPhone (Home+Power)

Once mobile Terminal is installed on your iPhone, you can proceed to changing the root password.



Instructions to Change Root Password:
Step 1: Tap on the 'Terminal' icon on your iPhone Springboard to launch it.

Image

How to change the root password of your iPhone

Step 2: You are shown a black screen. Against the command prompt, type su and tap the return key.

ImageImage

Step 3: You are now prompted for the password. The default password for root is alpine. Input this text and tap the return key once again.

Step 4: You are now logged in as the root user. Against the command prompt, enter the command passwd and tap the return key.

Step 5: You will be prompted to enter a new password. Enter this new password and retype to confirm.

Your root password has been changed. Please do note that the root password is stored in encrypted format in the device and so in the event of you losing the password, it is quite a task to retrieve it. So, make sure to remember your new root password.




Once you have done all this Work, you will have to install some very intersting Apps from the Cydia Store.

One of my favorites is SBSettings. It will allow you to switch ON and OFF some of the basic functions of your iPhone (like Bluetooth or WIFI) without having to switch everytimes into the Settings folder.


Another interesting function will be the one to install Apps of the Appstore for free.

This will request a few Steps in order to work:
Step 1 : Have an iPhone. Make sure you have OS 4.0.1 (done)

Step 2: Jailbreak iPhone (done)

Step 3: Enter Cydia on the iPhone, go to manage, go to sources, click edit (top right), click add (top left) and type : http://cydia.hackulo.us/ (see screenshot) . Ignore Cydia’s silly warnings

Image

Step 4: click search (bottom right), type in ‘installous’. The only result you should get is ‘Installous’(see screenshot). Click this and press ‘install’ (top right)

Image

Step 5: click search again, type in ‘appsync’. The only result you should get is ‘AppSync’(see screenshot). Click this and press install

Image

Step 6: Exit Cydia, and click the new installous icon. Click settings (bottom right). Toggle ‘iTunes Sync’ to On

Step 7: Download any Apps from here: http://apptrackr.org/

Step 8: Drag the app you just downloaded into iTunes

Step 9: Plug your iphone into your computer, it should now sync the app.
IMPORTANT:

Since the upgrade of iOS 4.0.2, if you would like to keep iOS 4.0.1 with the Jailbreak, you need to close the fail with which it is possible to sneak into the iPhone!
This is due because the Jailbreakme Team has published the code of the breach of the system they used in 4.0.1 so that every hacker could potentially sneak into your phone.

Go into Cydia, Click on Changes and wait until it loads and upgrade/install the PDF Patch. See Picture below:

Image

And now, ENJOY!
User avatar
geohei
Site Admin
Posts: 3388
Joined: Tuesday, 19.11.2002 07:56
Location: Luxembourg
Contact:

Re: Jailbreak iOS 4.0.1

Post by geohei »

Thanks a lot for this VERY good introduction!
fwilli wrote:First, you have to open the Safari Browser and enter the following Address:
... inside the iPhone. I went to Firfox and IE on the PC. Couldn't work (of course).
fwilli wrote:You will be asked to do some updates and you can accept them without a problem. It is a little bit like the official Apps of Apple which are updated regularily.
Are these Updates from Cydia or Apple?

Afirm, these updates are from Cydia. You will be asked to perform them.
fwilli wrote:First, you will have to install OpenSSH within Cydia:
OpenSSL will be installed at the same go. Is this correct?

I am not sure about this. In previous Jailbreak methods, OpenSSH got installed along with Cydia but with this one I am not sure if I had to install it or not. Anyway, you can check wether it is installed after the Jailbreak by clicking on Manage within Cydia and see if it is appearing there under Packages. If not you simply have to search for it and install the App.
fwilli wrote:(Unfortunately the following method is not working right now because the installed version of Mobile Terminal is not compatible with 4.0.1)
Here, it went fine!
Version 364.1-10
It says that it is for iPhone OS3, but it works ...
... later ...
Ok, got it now .... installation works fine, but it doesn't start. I use "Mobile Admin" from the AppStore. Works fine. Login should be done with 127.0.0.1 (localhost). Works fine!

Code: Select all

login as: root
root@192.168.1.45's password:
iPhone-Georges:~ root# passwd
Changing password for root.
New password:
Retype new password:
iPhone-Georges:~ root# ls -laR *
Library:
total 0
drwxr-x--- 8 root wheel 272 Aug 11 17:27 ./
drwxr-x--- 4 root wheel 136 Aug 11 17:26 ../
drwx------ 2 root wheel 102 Aug 11 17:27 AddressBook/
drwx------ 5 root wheel 204 Aug 11 17:27 Caches/
drwxr-xr-x 2 root wheel 102 Aug 11 18:55 Cookies/
drwx------ 2 root wheel  68 Aug 11 17:27 Keyboard/
drwxr-xr-x 5 root wheel 272 Aug 11 07:31 Lockdown/
drwxr-x--- 2 root wheel 204 Aug 11 17:27 Preferences/

Library/AddressBook:
total 208
drwx------ 2 root wheel    102 Aug 11 17:27 ./
drwxr-x--- 8 root wheel    272 Aug 11 17:27 ../
-rw-r--r-- 1 root wheel 212992 Aug 11 17:27 AddressBook.sqlitedb

Library/Caches:
total 8
drwx------ 5 root wheel 204 Aug 11 17:27 ./
drwxr-x--- 8 root wheel 272 Aug 11 17:27 ../
drwxr-xr-x 2 root wheel  68 Aug  9 18:44 Backup/
drwxr-xr-x 4 root wheel 136 Aug 11 17:35 Snapshots/
-rw-r--r-- 1 root wheel 813 Jun 20 18:37 com.apple.pep.configuration.plist
drwx------ 4 root wheel 578 Aug 11 18:46 locationd/

Library/Caches/Backup:
total 0
drwxr-xr-x 2 root wheel  68 Aug  9 18:44 ./
drwx------ 5 root wheel 204 Aug 11 17:27 ../

Library/Caches/Snapshots:
total 0
drwxr-xr-x 4 root wheel 136 Aug 11 17:35 ./
drwx------ 5 root wheel 204 Aug 11 17:27 ../
drwxr-xr-x 2 root wheel 102 Aug 11 17:27 com.apple.mobilesafari/
drwxr-xr-x 2 root wheel  68 Aug 11 17:35 com.saurik.Cydia/

Library/Caches/Snapshots/com.apple.mobilesafari:
total 96
drwxr-xr-x 2 root wheel   102 Aug 11 17:27 ./
drwxr-xr-x 4 root wheel   136 Aug 11 17:35 ../
-rw-r--r-- 1 root wheel 93693 Aug 11 17:27 Default.jpg

Library/Caches/Snapshots/com.saurik.Cydia:
total 0
drwxr-xr-x 2 root wheel  68 Aug 11 17:35 ./
drwxr-xr-x 4 root wheel 136 Aug 11 17:35 ../

Library/Caches/locationd:
total 1824
drwx------ 4 root wheel     578 Aug 11 18:46 ./
drwx------ 5 root wheel     204 Aug 11 17:27 ../
-rw-r--r-- 1 root wheel    4650 Jul 31 12:19 WMM.dat
-rw-r--r-- 1 root wheel     829 Jun 27 16:50 c-trained.plist
-rw-r--r-- 1 root wheel    3835 Aug 11 18:56 cache.plist
-rw-r--r-- 1 root wheel      42 Jun 24 11:17 cells-local.plist
-rw-r--r-- 1 root wheel    3932 Jun 24 11:17 cells.plist
-rw-r--r-- 1 root wheel      79 Jun 17 20:19 clients-b.plist
-rw-r--r-- 1 root wheel    3038 Aug 11 18:07 clients.plist
-rw-r--r-- 1 root wheel 1728512 Aug 11 18:06 consolidated.db
drwx------ 2 root wheel      68 Mar 20 07:23 ephemeris/
-rw-r--r-- 1 root wheel    8192 Jun 29 13:12 gyroCal.db
-rw-r--r-- 1 root wheel      42 Jun 20 19:07 h-cells.plist
-rw-r--r-- 1 root wheel      42 Jun 20 19:07 h-wifis.plist
-rw-r--r-- 1 root wheel   42673 Aug 11 18:46 lto2.dat
-rw-r--r-- 1 root wheel     407 Aug 11 18:47 stats.plist
drwx------ 2 root wheel    1020 Jun 24 11:16 wifi/

Library/Caches/locationd/ephemeris:
total 0
drwx------ 2 root wheel  68 Mar 20 07:23 ./
drwx------ 4 root wheel 578 Aug 11 18:46 ../

Library/Caches/locationd/wifi:
total 600
drwx------ 2 root wheel  1020 Jun 24 11:16 ./
drwx------ 4 root wheel   578 Aug 11 18:46 ../
-rw-r--r-- 1 root wheel 37839 Jun 10 16:58 C431B3_1275620198.dat
-rw-r--r-- 1 root wheel 10301 Jun 10 16:58 C431B7_1274417679.dat
-rw-r--r-- 1 root wheel 10808 Jun 10 16:58 C431BB_1274417679.dat
-rw-r--r-- 1 root wheel  2198 Apr 13 17:50 C431BF_1270289375.dat
-rw-r--r-- 1 root wheel 24255 Apr 13 17:50 C431F_1270289375.dat
-rw-r--r-- 1 root wheel  6362 Apr 30 15:09 C4324F_1272162921.dat
-rw-r--r-- 1 root wheel 69759 Jun 15 15:07 C4325_1275620192.dat
-rw-r--r-- 1 root wheel 18700 Jun 10 16:58 C43280_1275620192.dat
-rw-r--r-- 1 root wheel 17153 Jun 24 11:16 C43281_1276879091.dat
-rw-r--r-- 1 root wheel 14394 Jun 24 11:16 C43282_1276879091.dat
-rw-r--r-- 1 root wheel 11999 Jun 24 11:16 C432857_1275620192.dat
-rw-r--r-- 1 root wheel 17750 Jun 24 11:16 C43285A_1276879091.dat
-rw-r--r-- 1 root wheel 26055 Jun 24 11:16 C43285B_1276879091.dat
-rw-r--r-- 1 root wheel 17639 Jun 24 11:16 C43285E_1276879091.dat
-rw-r--r-- 1 root wheel 29368 Jun 24 11:16 C43285F_1276879091.dat
-rw-r--r-- 1 root wheel  1094 Jun 24 11:16 C432860_1274417672.dat
-rw-r--r-- 1 root wheel  7573 Jun 24 11:16 C432861_1274417672.dat
-rw-r--r-- 1 root wheel  9142 Jun 24 11:16 C432864_1276879091.dat
-rw-r--r-- 1 root wheel  9868 Jun 24 11:16 C432865_1276879091.dat
-rw-r--r-- 1 root wheel 46838 Jun 24 11:16 C432868_1276879091.dat
-rw-r--r-- 1 root wheel 13187 Jun 24 11:16 C432869_1274417672.dat
-rw-r--r-- 1 root wheel   954 Jun 15 15:44 C43286A_1274417672.dat
-rw-r--r-- 1 root wheel 29816 Jun 24 11:16 C43286C_1276879091.dat
-rw-r--r-- 1 root wheel  7452 Jun 24 11:16 C43286D_1276879091.dat
-rw-r--r-- 1 root wheel 12325 Jun 15 15:44 C43286E_1274417671.dat
-rw-r--r-- 1 root wheel  5416 Jun 15 15:44 C43286F_1275620191.dat
-rw-r--r-- 1 root wheel 13690 Jun 15 15:44 C43287_1275620191.dat
-rw-r--r-- 1 root wheel 19776 Jun 17 10:07 C43289_1275620191.dat

Library/Cookies:
total 8
drwxr-xr-x 2 root wheel  102 Aug 11 18:55 ./
drwxr-x--- 8 root wheel  272 Aug 11 17:27 ../
-rw-r--r-- 1 root wheel 1551 Aug 11 18:55 Cookies.plist

Library/Keyboard:
total 0
drwx------ 2 root wheel  68 Aug 11 17:27 ./
drwxr-x--- 8 root wheel 272 Aug 11 17:27 ../

Library/Lockdown:
total 24
drwxr-xr-x 5 root wheel  272 Aug 11 07:31 ./
drwxr-x--- 8 root wheel  272 Aug 11 17:27 ../
drwxr-xr-x 2 root wheel  102 Mar 19 19:58 activation_records/
-rw-r--r-- 1 root wheel 5638 Aug 11 07:31 data_ark.plist
-rw-r--r-- 1 root wheel  887 Mar 19 19:57 device_private_key.pem
-rw-r--r-- 1 root wheel  251 Mar 19 19:57 device_public_key.pem
drwxr-xr-x 2 root wheel  204 Aug  9 07:49 escrow_records/
drwxr-xr-x 2 root wheel  578 Aug  9 07:49 pair_records/

Library/Lockdown/activation_records:
total 8
drwxr-xr-x 2 root wheel  102 Mar 19 19:58 ./
drwxr-xr-x 5 root wheel  272 Aug 11 07:31 ../
-rw-r--r-- 1 root wheel 5638 Mar 19 19:58 wildcard_record.plist

Library/Lockdown/escrow_records:
total 32
drwxr-xr-x 2 root wheel 204 Aug  9 07:49 ./
drwxr-xr-x 5 root wheel 272 Aug 11 07:31 ../
-rw-r--r-- 1 root wheel 183 Jun 29 13:12 30085381531362724104382240.plist
-rw-r--r-- 1 root wheel 185 Aug  3 13:14 30094076-1659868292184222336.plist
-rw-r--r-- 1 root wheel 183 Aug  9 07:33 30095236175131689432293476.plist
-rw-r--r-- 1 root wheel 184 Aug  9 07:49 30095238-173874124490282356.plist

Library/Lockdown/pair_records:
total 120
drwxr-xr-x 2 root wheel  578 Aug  9 07:49 ./
drwxr-xr-x 5 root wheel  272 Aug 11 07:31 ../
-rw-r--r-- 1 root wheel 2991 Mar 19 19:59 30066582122906022851033612.plist
-rw-r--r-- 1 root wheel 2989 Mar 19 19:58 300665825504664784988480.plist
-rw-r--r-- 1 root wheel 2992 Mar 20 13:42 30066730-783566876206804460.plist
-rw-r--r-- 1 root wheel 2992 Mar 24 09:04 30067496-175867186212643732.plist
-rw-r--r-- 1 root wheel 2991 Mar 27 16:00 30068158107294548245764076.plist
-rw-r--r-- 1 root wheel 2991 Apr  1 19:39 30069186882190194305193348.plist
-rw-r--r-- 1 root wheel 2992 Apr 23 13:08 300735571249045628279222216.plist
-rw-r--r-- 1 root wheel 2991 Apr 28 08:08 30074521100150978410372736.plist
-rw-r--r-- 1 root wheel 2993 May  3 09:31 30075538-1962072544203512096.plist
-rw-r--r-- 1 root wheel 2992 May  8 09:19 30076542-965800228228793500.plist
-rw-r--r-- 1 root wheel 2992 May  8 21:09 30076641-150375032324743448.plist
-rw-r--r-- 1 root wheel 2991 Jun 21 07:47 30085381531362724104382240.plist
-rw-r--r-- 1 root wheel 3271 Aug  3 13:14 30094076-1659868292184222336.plist
-rw-r--r-- 1 root wheel 3269 Aug  9 07:33 30095236175131689432293476.plist
-rw-r--r-- 1 root wheel 3270 Aug  9 07:49 30095238-173874124490282356.plist

Library/Preferences:
total 32
drwxr-x--- 2 root wheel 204 Aug 11 17:27 ./
drwxr-x--- 8 root wheel 272 Aug 11 17:27 ../
-rw------- 1 root wheel 169 Aug 11 17:27 .GlobalPreferences.plist
-rw------- 1 root wheel 149 Aug 11 17:27 com.apple.Preferences.plist
-rw------- 1 root wheel 123 Jun 24 11:16 com.apple.locationd.config.plist
-rwxr-x--- 1 root wheel 257 Dec 18  2009 com.apple.stackshot.plist*

Media:
total 0
drwxr-xr-x 2 root wheel  68 Feb 27  2008 ./
drwxr-x--- 4 root wheel 136 Aug 11 17:26 ../
fwilli wrote:Once mobile Terminal is installed on your iPhone, you can proceed to changing the root password.
You can also do this linux-like wise with the passwd command while ssh logged in. See code blog above ...
fwilli wrote:One of my favorites is SBSettings. It will allow you to switch ON and OFF some of the basic functions of your iPhone (like Bluetooth or WIFI) without having to switch everytimes into the Settings folder.
Does Cydia provide a list of software installed by Cydia?

You will find all the Apps Cydia installs within the Cydia App by clicking on Manage in the lower clicking area and then on Packages.
fwilli wrote:Step 4: click search (bottom right), type in ‘installous’. The only result you should get is ‘Installous’(see screenshot). Click this and press ‘install’ (top right)
Step 5: click search again, type in ‘appsync’. The only result you should get is ‘AppSync’(see screenshot). Click this and press install
What are these 2 Apps for?
BTW ... "AppSync" was already installed after I installed "Installous".

You will need these Apps if you want to install cracked Apps you can find on the link I provided you beforehand. Otherwise the transfer vie iTunes will not work.
fwilli wrote:And now, ENJOY!
Thanks again for this GREAT tutorial!
Image
User avatar
geohei
Site Admin
Posts: 3388
Joined: Tuesday, 19.11.2002 07:56
Location: Luxembourg
Contact:

Re: Jailbreak iOS 4.0.1

Post by geohei »

Image
Post Reply