+ Reply
Results 1 to 6 of 6

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: ($10 reward) Broke iPhone by changing file, how to SSH while in DFU/recovery?

is a discussion within the

General iPhone Chat

forums, a part of the

iPhone Modding

section;
Hey there people, I'm sorry if this is the wrong section but I had no idea where else to post it, anyway $10 paypal for the one who can help
...
  1. #1
    What's Jailbreak?
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ($10 reward) Broke iPhone by changing file, how to SSH while in DFU/recovery?
    Hey there people,

    I'm sorry if this is the wrong section but I had no idea where else to post it, anyway $10 paypal for the one who can help me out I'm utterly desperate!

    So here's the thing: I went into iFile and changed the 'fstab' file and now it can't boot, anymore, it's stuck in a loop. it shows the Apple logo for 10 seconds and then restarts.
    The file is 'fstab', and it's in /private/etc. I've already tried TinyUmbrella to kick it out of recovery but it doesn't work.

    The file first looked like this:



    /dev/disk0s1 / hfs rw 0 1

    /dev/disk0s2 /private/var hfs rw 0
    2

    And I changed that to: su

    alpine

    sysctl -w
    hw.cpufrequency_max=600000000

    sysctl -w hw.cpufrequency=600000000

    sysctl -w
    hw.cpufrequency_min=475000000

    /dev/disk0s1 / hfs rw 0 1

    /dev/disk0s2 /private/var hfs rw 0
    2



    My question: How do I SSH into the iPhone and change it back? It's in DFU/recovery mode and i'm really really desperate, I have no backup because I just got a new pc. Firmware 5.0 & please no paid software.

    Thanks!!!

  2. #2
    Green Apple p3bguin911's Avatar
    Join Date
    Sep 2009
    Posts
    53
    Thanks
    2
    Thanked 0 Times in 0 Posts

    iPhoneBrowser?

    What iPhone do you have?

    You can try this.


    First i downloaded these two files

    SSH_RD_Rev03B.jar
    Code:
    https://github.com/downloads/msftguy..._rd_rev03b.jar
    and
    JRE-7-Windows-i586-iftw.exe (For those using windows platform not needed on mac)
    Code:
    http://download.oracle.com/otn-pub/j...-i586-iftw.exe
    You then need to install the JRE-7 file because in order for the program to work you need to have a 32-Bit JRE for Windows. On Mac OSX, you can skip this whole step.

    Once JRE-7 file is installed, then you need to open ssh_rd_rev03b.jar file that you downloaded earlier. Upon opening it, it will ask you to connect a device in DFU mode. Plug your iPhone in and put it in DFU mode. Once successfully in DFU mode, the .jar program will do the rest. Let it complete its process until it says "success" and you see the login and password at the bottom.

    Now for the next step, you can use terminal for mac or for windows, you should use Putty.

    Open up the ssh client:
    For Mac: u need to type in terminal ssh -p 2022 root@localhost and hit enter. it will prompt you for password... type "alpine" (without the " obviously).
    Fow Windows: open Putty and connect to "localhost" and port "2022"
    once connected it will prompt you for user name (type "root") and then it will prompt you for password (type "alpine").

    Next you will type "mount.sh" and hit enter. Let it do it's thing and if it was successful, you should see these two lines:

    (For devices on iOS4)
    Mounting dev/disk0s1 on /mnt1 .,
    Mounting dev/disk0s2 on /mnt2 .,

    or

    (For devices on iOS5)
    Mounting dev/disk0s1s1 on /mnt1 .,
    Mounting dev/disk0s1s2 on /mnt2 .,

    At this point, you can use cyberduck for Mac or WinSCP for Windows.

    For Cyberduck you need to make a new SFTP connection to localhost, port 2022
    For WinSCP you need to make a new SFTP connection to:
    Host Name: 127.0.0.1 Port Number: 2022 User Name: root Pass: alpine

    Once connected, you would navigate to / and find the mnt1 and mnt2 folders.

    Inside /mnt2/mobile/ you should find all your address book, pictures, notepad notes, SMS folder, etc. Just copy them to your desktop.

    Inside /mnt1/Library/MobileSubstrate/ you will find your dynamic libraries which you can set all the .dylib extensions to .disabled (if you want to try and boot into your phone)

    If you want to try to boot into your phone after disabling all of your mobilesubstrate addons, just hole the power button and home button on your phone until it restarts. It will most likely go into recovery mode, in which you will just open up TinyUmbrella or which ever program u prefer and kick it out of recovery. At that point you should be able to boot into your phone.
    Last edited by p3bguin911; 10-06-2012 at 04:09 PM.

  3. #3
    iPhoneaholic MXCO's Avatar
    Join Date
    Sep 2010
    Location
    Seattle
    Posts
    418
    Thanks
    8
    Thanked 34 Times in 30 Posts

    Why don't you just restore it?
    "You may say I'm a dreamer, but I'm not"

  4. #4
    Green Apple SuperFastSlug's Avatar
    Join Date
    May 2012
    Posts
    70
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by MXCO View Post
    Why don't you just restore it?
    Excactly what I was thinking

  5. #5
    Green Apple nic0m0d's Avatar
    Join Date
    Jan 2012
    Location
    Edmonton, Alberta, Canada
    Posts
    97
    Thanks
    0
    Thanked 3 Times in 3 Posts

    I dropped my iPhone 4 in a river. No backup. Now I backup to iCloud every night.

  6. #6
    What's Jailbreak?
    Join Date
    Oct 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by p3bguin911 View Post
    iPhoneBrowser?

    What iPhone do you have?

    You can try this.


    First i downloaded these two files

    SSH_RD_Rev03B.jar
    Code:
    https://github.com/downloads/msftguy..._rd_rev03b.jar
    and
    JRE-7-Windows-i586-iftw.exe (For those using windows platform not needed on mac)
    Code:
    http://download.oracle.com/otn-pub/j...-i586-iftw.exe
    You then need to install the JRE-7 file because in order for the program to work you need to have a 32-Bit JRE for Windows. On Mac OSX, you can skip this whole step.

    Once JRE-7 file is installed, then you need to open ssh_rd_rev03b.jar file that you downloaded earlier. Upon opening it, it will ask you to connect a device in DFU mode. Plug your iPhone in and put it in DFU mode. Once successfully in DFU mode, the .jar program will do the rest. Let it complete its process until it says "success" and you see the login and password at the bottom.

    Now for the next step, you can use terminal for mac or for windows, you should use Putty.

    Open up the ssh client:
    For Mac: u need to type in terminal ssh -p 2022 root@localhost and hit enter. it will prompt you for password... type "alpine" (without the " obviously).
    Fow Windows: open Putty and connect to "localhost" and port "2022"
    once connected it will prompt you for user name (type "root") and then it will prompt you for password (type "alpine").

    Next you will type "mount.sh" and hit enter. Let it do it's thing and if it was successful, you should see these two lines:

    (For devices on iOS4)
    Mounting dev/disk0s1 on /mnt1 .,
    Mounting dev/disk0s2 on /mnt2 .,

    or

    (For devices on iOS5)
    Mounting dev/disk0s1s1 on /mnt1 .,
    Mounting dev/disk0s1s2 on /mnt2 .,

    At this point, you can use cyberduck for Mac or WinSCP for Windows.

    For Cyberduck you need to make a new SFTP connection to localhost, port 2022
    For WinSCP you need to make a new SFTP connection to:
    Host Name: 127.0.0.1 Port Number: 2022 User Name: root Pass: alpine

    Once connected, you would navigate to / and find the mnt1 and mnt2 folders.

    Inside /mnt2/mobile/ you should find all your address book, pictures, notepad notes, SMS folder, etc. Just copy them to your desktop.

    Inside /mnt1/Library/MobileSubstrate/ you will find your dynamic libraries which you can set all the .dylib extensions to .disabled (if you want to try and boot into your phone)

    If you want to try to boot into your phone after disabling all of your mobilesubstrate addons, just hole the power button and home button on your phone until it restarts. It will most likely go into recovery mode, in which you will just open up TinyUmbrella or which ever program u prefer and kick it out of recovery. At that point you should be able to boot into your phone.
    Thanks allot! Your comment helped me 100%. Thank you very much, best comment I have ever seen

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts