Discuss photorec and iphone at the iPhone Linux (iDroid) - Hackint0sh.org; I deleted my photos on iphone i donr have any backups....
My iphone is jailbreked ...
-
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.
-
-
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
-
-
Thanks man im gonna try later on today on my ubuntu i let u know if it working thanks again
-

Originally Posted by
fanum
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
-
-

Originally Posted by
zion22
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 4 factory unlocked, iOS 4.3.1, jailbroken
iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
iPad 2
-
-
-
volkspost so whats the easier way on mac? or windows?
Get the latest info for NoAccSplash
Here
Currently it should work on iOS 4.x - 6.x

If you'd like to help extend its functionality, the source is also available.
-

Originally Posted by
truehybridx
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 4 factory unlocked, iOS 4.3.1, jailbroken
iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
iPad 2
-
-

Originally Posted by
volkspost
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
-

Originally Posted by
zion22
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 4 factory unlocked, iOS 4.3.1, jailbroken
iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
iPad 2
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks