Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > iPhone Linux

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2009, 10:05 AM
zion22
Status: Offline
Junior Member
 
Join Date: Apr 2009
Posts: 29
Rep Power: 0
zion22 is on a distinguished road
Question photorec and iphone

I deleted my photos on iphone i donr have any backups....
My iphone is jailbreked and got intalled terminal whit ssh is it posible to connect whit to it via ssh and run photorec or maybe its some other program
whit which i can recover photos

And ohter thing i found here i need to dump disk or something.... Maybe someone can tell me more about that???

Last edited by zion22; 08-24-2009 at 12:33 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 08-26-2009, 10:28 AM
fanum
Status: Offline
Trial Member
 
Join Date: Aug 2009
Posts: 1
Rep Power: 0
fanum is on a distinguished road
Default Yes, you can dd the iphone drive over ssh

you need to set up a server on the phone, and receive the image on your computer. you can then carve files out of the image. I have only done this once so the commands may not be dead on, but you should get the idea.

Install DD and Netcat from cydia

Install DD and Netcat on the Recovery Computer

Turn off autolock on the iphone (or activate insomnia? havnt tried it but seems like a good idea)

from your desktop (Linux or Mac, I used Ubuntu so you may need to edit the commands for mac) run this command:

nc -l -p 5555 | dd of=./rdisk0s2 bs=4096

You may need to open that port in firestarter (or iptables directly), I believe I did (you can just open firestarter and wait for it to block it, then right click that entry in the log and select "allow connections from source")

That tell the computer to listen on that port, and name what it finds rdisk0s2 in your current directory

SSH into the phone (or in mobileterm) and run this command:

dd if=/dev/rdisk0s2 bs=4096 | nc 192.168.x.x 5555

Replace the x.x on the end with the last digits of your recovery computers IP address (sure you already know this, but just incase you can find it with ifconfig)

You should see a disk image appear and grow untill you loose wifi or it hits 7.whatever gb

Let me know if i missed anything, thats just from memory so im sure you will have to do some troubleshooting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 08-26-2009, 11:24 AM
zion22
Status: Offline
Junior Member
 
Join Date: Apr 2009
Posts: 29
Rep Power: 0
zion22 is on a distinguished road
Default

Thanks man im gonna try later on today on my ubuntu i let u know if it working thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 08-26-2009, 06:34 PM
zion22
Status: Offline
Junior Member
 
Join Date: Apr 2009
Posts: 29
Rep Power: 0
zion22 is on a distinguished road
Default

Quote:
Originally Posted by fanum View Post
you need to set up a server on the phone, and receive the image on your computer. you can then carve files out of the image. I have only done this once so the commands may not be dead on, but you should get the idea.

Install DD and Netcat from cydia

Install DD and Netcat on the Recovery Computer

Turn off autolock on the iphone (or activate insomnia? havnt tried it but seems like a good idea)

from your desktop (Linux or Mac, I used Ubuntu so you may need to edit the commands for mac) run this command:

nc -l -p 5555 | dd of=./rdisk0s2 bs=4096

You may need to open that port in firestarter (or iptables directly), I believe I did (you can just open firestarter and wait for it to block it, then right click that entry in the log and select "allow connections from source")

That tell the computer to listen on that port, and name what it finds rdisk0s2 in your current directory

SSH into the phone (or in mobileterm) and run this command:

dd if=/dev/rdisk0s2 bs=4096 | nc 192.168.x.x 5555

Replace the x.x on the end with the last digits of your recovery computers IP address (sure you already know this, but just incase you can find it with ifconfig)

You should see a disk image appear and grow untill you loose wifi or it hits 7.whatever gb

Let me know if i missed anything, thats just from memory so im sure you will have to do some troubleshooting
sorry man but i cant managed to install dd on iphone i cant find it in cydia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 08-26-2009, 09:38 PM
volkspost
Status: Online
iPhone Moderator
 
Join Date: Aug 2007
Posts: 3,581
Rep Power: 213
volkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to all
Default

Quote:
Originally Posted by zion22 View Post
sorry man but i cant managed to install dd on iphone i cant find it in cydia
It is already installed with Cydia. cydia comes with a set of Unix tools, dd is one of it.
Are you on a Mac or Windows-PC? On Windows you'd have to install dd and nc, on Mac OS X both already there.
BTW: it can be done even easier, just let me know what platform you are on.
__________________
Read the stickies and search the forum before posting!
If you want to become a Hackint0sh supporter click here
----------
iPhone 3GS factory unlocked (3.1.2; Blackra1n, Cydia, OpenSSH, custom 3.0 ipcc file (no sig), tethering hack by Dev team, 32 GB)
iPhone 3G (3.0.1; Redsn0w 0.8, Cydia, OpenSSH) 16 GB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 08-28-2009, 06:46 AM
AnthonySTL
Status: Offline
Trial Member
 
Join Date: Aug 2009
Posts: 2
Rep Power: 0
AnthonySTL is on a distinguished road
Default

I found this after i posted a topic in other thread, well i am trying to do same thing... I am new to this should i even attempt to do this? If someone could create a tutorial that has experience or send me a link or a pm that would be great and/or software that might work for this... I do a lot of screen replacements and hardware replacements for people and have had lots of people ask me if this was possible..Any help would be great ..thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #7 (permalink)  
Old 09-03-2009, 10:52 PM
truehybridx
Status: Online
Respected Member
 
Join Date: Nov 2007
Posts: 992
Rep Power: 51
truehybridx is on a distinguished road
Default

volkspost so whats the easier way on mac? or windows?
__________________
Download LEI Mobile and stay in touch with Limited Edition iPhone!! http://limitededitioniphone.com/software/

iPhone 3GS - 3.0 T-Mobile
Computers:
Dell i545s
Operating Systems:
Windows Vista
OSX Leopard (iDeneb 10.5.8)

MacBook5,2
OSX Leopard 10.5.8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 09-03-2009, 11:29 PM
volkspost
Status: Online
iPhone Moderator
 
Join Date: Aug 2007
Posts: 3,581
Rep Power: 213
volkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to all
Default

Quote:
Originally Posted by truehybridx View Post
volkspost so whats the easier way on mac? or windows?
Pretty much the same. Difference is that Mac OS X has a SSH server and dd installed by default. You'd have to install both on Windows. I am on a business trip right now, can get you dl adresses for Windows tomorrow if you need it.
__________________
Read the stickies and search the forum before posting!
If you want to become a Hackint0sh supporter click here
----------
iPhone 3GS factory unlocked (3.1.2; Blackra1n, Cydia, OpenSSH, custom 3.0 ipcc file (no sig), tethering hack by Dev team, 32 GB)
iPhone 3G (3.0.1; Redsn0w 0.8, Cydia, OpenSSH) 16 GB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 09-10-2009, 11:39 PM
zion22
Status: Offline
Junior Member
 
Join Date: Apr 2009
Posts: 29
Rep Power: 0
zion22 is on a distinguished road
Default

Quote:
Originally Posted by volkspost View Post
It is already installed with Cydia. cydia comes with a set of Unix tools, dd is one of it.
Are you on a Mac or Windows-PC? On Windows you'd have to install dd and nc, on Mac OS X both already there.
BTW: it can be done even easier, just let me know what platform you are on.
No mate im on ubuntu
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #10 (permalink)  
Old 09-11-2009, 12:03 AM
volkspost
Status: Online
iPhone Moderator
 
Join Date: Aug 2007
Posts: 3,581
Rep Power: 213
volkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to all
Default

Quote:
Originally Posted by zion22 View Post
No mate im on ubuntu
You are pretty much set then. Run Cydia on the iPhone and make sure to install Netcat and OpenSSH. Install OpenSSH on your Ubuntu box, dd and netcat should be installed already. to check fire up a terminal session and issue
which nc dd


On the Ubuntu box in ssh-terminal session do
nc -l 7000 | dd of=./rdisk0s2
if it is an iPhone 2G/3G or
nc -l 7000 | dd of=./rdisk0s2s1
if it is an iPhone 3GS

Ubuntu box is waiting for data then

Fire up another ssh-terminal session and log into the iPhone

ssh -l root 192.168.1.10

where 192.168.1.10 has to be replaced with the iPhone's IP

password is alpine

Then issue

/bin/dd if=/dev/rdisk0s2 bs=1M | nc 192.168.1.5 7000

where 192.168.1.5 has to be replaced with your Ubuntu's IP. remember to replace rdisk0s2 with rdisk0s2s1 if it's a 3GS.

make sure to have the iPhone connected to ac and set auto-lock to never. takes about 3 hours for an 8GB, 5 for 16GB...
__________________
Read the stickies and search the forum before posting!
If you want to become a Hackint0sh supporter click here
----------
iPhone 3GS factory unlocked (3.1.2; Blackra1n, Cydia, OpenSSH, custom 3.0 ipcc file (no sig), tethering hack by Dev team, 32 GB)
iPhone 3G (3.0.1; Redsn0w 0.8, Cydia, OpenSSH) 16 GB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +2. The time now is 12:48 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105