You are Unregistered, please register to gain Full access.    

Go Back   SiNfuL iPhone > Discussion | Help > How-To: Guides / Tutorials > Misc

Notices

Misc Guides that are NOT device specific OR are related to all devices in general.

Reply
Thread Tools

 [MAC or WIN] SSH Into Your Phone While In DFU Mode!!!
Unread 02-15-2012, 06:06 PM   #1
cdguy707
Jailbroken
 
cdguy707 is offline
Join Date: Oct 2009
Device: iPhone 5S
iOS Version: 7.0
iTunes Version: iTunes 11
Carrier: AT&T
OS: Windows 7 x64
Location: California
Posts: 87
Thanks: 8
Thanked 23 Times in 8 Posts
[MAC or WIN] SSH Into Your Phone While In DFU Mode!!!

If this has been posted already in the tuts section, go ahead and just delete it. I did a search for it but only found multipazz's guide which works for Mac only. This method is a little easier and works for both windows and mac.

Im sure alot of people have had their iphone crash on them and either got stuck in a boot loop or recovery loop. Most people have the cydia package af2cd installed on their phone and can use ifunbox or iphone explorer to get into their phone. And there is also usually a 30-60 second window where u can even use WinSCP to SSH into your phone as well. But i recently had a problem where i couldn't even get WinSCP to recognize my phone and i did not have af2cd to use ifunbox or iphone explorer. I have never backed up my phone and had alot of pictures, videos, contacts, important text messages and notepad notes that i refused to loose. After much of everyone telling me that it was impossible to retrieve the data on my phone and i would have to just restore and lose everything, i learned a neat little trick and i would like to share with everyone.

This guide will show you how to access your phone via SSH while in DFU mode! This way you will never lose your data again!!! I hope this helps everyone and shoot me a thanks if you like it!!!

Big thanks to Camilo Rodrigues @Allpluscomputer, iPhone Dev Team, @planetbeing, Chronic-Dev, @posixninja, @pod2g, geohot and iH8sn0w who made this method possible!!!

First i downloaded these two files

SSH_RD_Rev03B.jar
Code:
https://github.com/downloads/msftguy/ssh-rd/ssh_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/java/jdk/7/jre-7-windows-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.


Here is a YouTube video showing how this works!
http://www.youtube.com/watch?v=http://www.youtube.com/watch?v=1dh5loiX1dU


I hope this helps you guys out there. It sure helped me.... at first i was able to go through WinSCP but after i had thought i fixed it and restarted my phone, winSCP was no longer able to access my phone through wifi... but this method works beautifully!
  Reply With Quote
The Following 10 Users Say Thank You to cdguy707 For This Useful Post:
AppleHacker (07-10-2012), Bossedup (07-10-2012), kerode (05-24-2013), l0new0lf99 (06-14-2012), multipazz (06-11-2012), natzakaria (02-28-2012), pusher (08-06-2012), rainbows (09-09-2012), simoJB (07-02-2012), tjmaster (01-29-2014)

 
Unread 02-21-2012, 02:29 AM   #2
Slimshouki
n00b
 
Slimshouki is offline
Join Date: Jan 2012
Device: iPhone 4S
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Vodafone
OS: Windows 7
Location: California
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
thnx man but this one wont work on iphone 4s
it says device unsupported
  Reply With Quote

 
Unread 02-28-2012, 08:38 PM   #3
cdguy707
Jailbroken
 
cdguy707 is offline
Join Date: Oct 2009
Device: iPhone 5S
iOS Version: 7.0
iTunes Version: iTunes 11
Carrier: AT&T
OS: Windows 7 x64
Location: California
Posts: 87
Thanks: 8
Thanked 23 Times in 8 Posts
sorry bud, i dont have an iphone 4s to test... but i have tested on an iphone 3 iphone 3gs and iphone 4... i was successful on all of those... that tells me that this will only work for idevices with the a4 processory not the a5...
  Reply With Quote

 
Unread 02-29-2012, 12:35 PM   #4
LouWeegie
n00b
 
LouWeegie is offline
Join Date: Feb 2012
Device: iPhone 3GS
iOS Version: 3.1.2
iTunes Version: iTunes 9
Carrier: T-Mobile
OS: Windows XP
Location: GA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
well, just my luck, (ssh_rd_rev03b.jar ) can only get to
" Exploit sent!
Preparing to load the ramdisk..
Ramdisk load started!
MobileDevice event: DfuDisconnect, 1227, 8920
MobileDevice event: DfuConnect, 1227, 8920
DFU device 'iPhone 3GS' connected
Ignoring same device iPhone 3GS
MobileDevice event: DfuDisconnect, 1227, 8920
MobileDevice event: RecoveryConnect, 1281, 8920 "
doesnt seem to want to finish

My loop occured after updating Cydia

Any HELP would be Greatly appreciated...with wonderful praise and admiration

---------- EDIT ----------

well, just my luck, (ssh_rd_rev03b.jar ) can only get to
" Exploit sent!
Preparing to load the ramdisk..
Ramdisk load started!
MobileDevice event: DfuDisconnect, 1227, 8920
MobileDevice event: DfuConnect, 1227, 8920
DFU device 'iPhone 3GS' connected
Ignoring same device iPhone 3GS
MobileDevice event: DfuDisconnect, 1227, 8920
MobileDevice event: RecoveryConnect, 1281, 8920 "
doesnt seem to want to finish

My loop occured after updating Cydia

Any HELP would be Greatly appreciated...with wonderful praise and admiration
  Reply With Quote

 Thans man!
Unread 06-11-2012, 09:15 AM   #5
DrUmtux
n00b
 
DrUmtux is offline
Join Date: Jan 2012
Device: iPhone 3GS
iOS Version: 5.0
iTunes Version: iTunes 10
Carrier: T-Mobile
OS: Windows 7
Location: Czech Republic
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Icon7 Thans man!

Oh, man u've saved my ass! I messed up 'overclocking' of my iDevice. I've tried a lot of tuts to save reboot problem a THIS was the only one witch worked.

Again, thanks. Daniel Born
  Reply With Quote

 
Unread 06-22-2012, 12:54 PM   #6
sreknob
been_around_the_block
 
sreknob is offline
Join Date: Oct 2010
Device: iPhone 5S
iOS Version: 7.0
iTunes Version: iTunes 11
Carrier: Rogers
OS: Windows 7 x64
Location: Ontario
Posts: 17
Thanks: 59
Thanked 5 Times in 3 Posts
Fantastic information.
Most recent ssh-rd can always be found here
  Reply With Quote

 
Unread 07-10-2012, 08:09 AM   #7
Skidz
n00b
 
Skidz is offline
Join Date: Jul 2012
Device: iPhone 3G
iOS Version: 4.2.x
iTunes Version: iTunes 10
Carrier: Other
OS: Windows XP
Location: Pakistan
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
how do u open the jar file and which program do u use?? i messed my fstab file and i need to fix that in order to get it fixed..... plz help!!
  Reply With Quote

 
Unread 07-10-2012, 08:57 AM   #8
willy1560
iPhoneaholic
 
willy1560's Avatar
 
willy1560 is offline
Join Date: Nov 2009
Device: iPhone 4
iOS Version: 5.1.1
iTunes Version: iTunes 10
Carrier: AT&T
OS: Windows Vista
Location: PA
Posts: 109
Thanks: 54
Thanked 10 Times in 8 Posts
Do you need to be jailbroken?
  Reply With Quote

 
Unread 10-16-2012, 01:23 PM   #9
auhm
n00b
 
auhm is offline
Join Date: Oct 2012
Device: iPhone 4S
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: AT&T
OS: Windows 7
Location: New york
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
When I try to open the ssh_rd I get this error: INIT FAILED (mux thread)!
Possible causes:
iTunes 9 or newer is NOT installed.
Could not bind to the port 2202 (make sure only one instance is running!

I have iTunes 10 installed, any suggestions?
  Reply With Quote

 
Unread 03-22-2013, 12:17 PM   #10
AgentCoffee
n00b
 
AgentCoffee is offline
Join Date: Mar 2013
Device: iPod Touch 5
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: AT&T
OS: Windows 7 x32
Location: OR
Posts: 16
Thanks: 5
Thanked 4 Times in 3 Posts
Does this not work with A5+ devices?
  Reply With Quote

 
Unread 03-25-2013, 01:24 AM   #11
cercelsorin
Jailbroken
 
cercelsorin is offline
Join Date: Sep 2010
Device: iPhone 3GS
iOS Version: 5.1.1
iTunes Version: iTunes 11
Carrier: Other
OS: Windows 7
Location: Romania
Posts: 38
Thanks: 41
Thanked 4 Times in 3 Posts
and yaaa......working my idevice again whitout restore,but with this SSH_RD_Rev03B.jar not work,get a error same @auhm user but find a russian executable recovery_tool_apple_device.exe a tutorial with pics and video Recovery Tool Apple Device i hope not delete this post because is verry useful. i search for this tutorial a 1 hour ago...succes all and never restore and loose data for a wrong tweak installed and some files edited for a faster idevice.

Last edited by cercelsorin; 05-03-2013 at 12:35 PM.
  Reply With Quote

 
Unread 05-24-2013, 11:08 AM   #12
kevdeme
n00b
 
kevdeme is offline
Join Date: May 2013
Device: iPhone 4
iOS Version: 6.1.2
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7 x64
Location: Buenos Aires
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Wow many thanks!! this actually save my life!!
  Reply With Quote

 
Unread 07-02-2013, 12:44 AM   #13
monoam
n00b
 
monoam is offline
Join Date: Jul 2013
Device: iPhone 3G
iOS Version: 4.2.x
iTunes Version: iTunes 11
Carrier: Other
OS: Windows 7 x32
Location: iran
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
when i run mount.sh , it say that it can't mount mnt2 please help meeeeeee!!
here is my screen after i run mount.sh

Checking /dev/disk0s1 ..
** /dev/rdisk0s1
Executing fsck_hfs (version diskdev_cmds-488.1.7~39).
** Checking non-journaled HFS Plus Volume.
** Detected a case-sensitive volume.
** Checking extents overflow file.
** Checking catalog file.
** Checking multi-linked files.
** Checking catalog hierarchy.
** Checking extended attributes file.
** Checking volume bitmap.
** Checking volume information.
** The volume Jasper8C148.iPhoneOS appears to be OK.
Mounting /dev/disk0s1 on /mnt1 ..
Checking /dev/disk0s2 ..
** /dev/rdisk0s2
Executing fsck_hfs (version diskdev_cmds-488.1.7~39).
** Checking non-journaled HFS Plus Volume.
** Detected a case-sensitive volume.
** Checking extents overflow file.
** Checking catalog file.
Invalid index key
(4, 1301)
** Rebuilding catalog B-tree.
** The volume Data could not be repaired.
Mounting /dev/disk0s2 on /mnt2 ..
mount_hfs: Invalid argument
  Reply With Quote

 
Unread 08-17-2013, 08:53 AM   #14
SPOOLLL
Jailbroken
 
SPOOLLL's Avatar
 
SPOOLLL is offline
Join Date: Jan 2010
Device: iPhone 4S
iOS Version: 5.1
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: Canada
Posts: 51
Thanks: 16
Thanked 1 Time in 1 Post
Does this not work with A5+ devices?
  Reply With Quote

 
Unread 09-07-2013, 02:41 AM   #15
cercelsorin
Jailbroken
 
cercelsorin is offline
Join Date: Sep 2010
Device: iPhone 3GS
iOS Version: 5.1.1
iTunes Version: iTunes 11
Carrier: Other
OS: Windows 7
Location: Romania
Posts: 38
Thanks: 41
Thanked 4 Times in 3 Posts
No,not work on A5+ devices
  Reply With Quote

 
Unread 01-19-2014, 03:10 PM   #16
Umeaboy
n00b
 
Umeaboy is offline
Join Date: Jan 2014
Device: iPad 4
iOS Version: 7.0
iTunes Version: iTunes 11
Carrier: Other
OS: Linux
Location: Vasterbotten
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
What about instructions for Linux?
  Reply With Quote

 
Unread 08-24-2014, 06:28 PM   #17
Kornshadow097
iPhoneaholic
 
Kornshadow097's Avatar
 
Kornshadow097 is offline
Join Date: Oct 2009
Device: iPhone 5
iOS Version: 6.1.2
iTunes Version: iTunes 10
Carrier: AT&T
OS: Windows 7
Location: CA
Posts: 113
Thanks: 21
Thanked 1 Time in 1 Post
looked promising but it just says

Extracted resource to C:\Users\Agent\AppData\Local\Temp\ssh_rd\native\jsyringeapi.dll
Extracted resource to C:\Users\Agent\AppData\Local\Temp\ssh_rd\native\mux_redux.dll

Connect a device in DFU mode
MobileDevice event: DfuConnect, 7201227, 8950
DFU device 'UNSUPPORTED' connected
Ignoring unsupported device UNSUPPORTED


what now?!
No advertising, thank you for your co-operation
  Reply With Quote

 
Unread 10-12-2014, 05:37 PM   #18
xuanyuan
n00b
 
xuanyuan is offline
Join Date: Oct 2014
Device: iPhone 4
iOS Version: 7.1.x
iTunes Version: iTunes 11
Carrier: Other
OS: Windows 8 x64
Location: newyork
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Icon5

yes,me too
ssh_rd_rev04a and ssh_rd_rev04b all unsupported iphone4s (a5)

Ignoring unsupported device UNSUPPORTED

and now ?hurry please thank you!
[

Quote:
Originally Posted by Kornshadow097 View Post
looked promising but it just says

Extracted resource to C:\Users\Agent\AppData\Local\Temp\ssh_rd\native\jsyringeapi.dll
Extracted resource to C:\Users\Agent\AppData\Local\Temp\ssh_rd\native\mux_redux.dll

Connect a device in DFU mode
MobileDevice event: DfuConnect, 7201227, 8950
DFU device 'UNSUPPORTED' connected
Ignoring unsupported device UNSUPPORTED


what now?!


---------- EDIT ----------

I need help !!!



Quote:
Originally Posted by xuanyuan View Post
yes,me too
ssh_rd_rev04a and ssh_rd_rev04b all unsupported iphone4s (a5)

Ignoring unsupported device UNSUPPORTED

and now ?hurry please thank you!
[
  Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On




All times are GMT -7. The time now is 04:57 AM.

Copyright 2009 (SiNfulSS)- Shot Caller @ SiNfuL iPhone