SmartCloud783 / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 0 forks source link

-bash hg: command not found #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, I am attempting to do the SSH tutorial and everything was going fine but 
when I enter the command "hg clone 
https://code.google.com/p/iphone-dataprotection/" I got the error "-bash hg: 
command not found"

How would I go about fixing this?

Thanks!

Original issue reported on code.google.com by hleste...@gmail.com on 13 Nov 2011 at 10:01

GoogleCodeExporter commented 8 years ago
Ok I fixed it by installing mercurial but now I've gotten to the part where I 
run redsn0w with the ramdisk but when I use the command:

./redsn0w_mac_0.9.9b5/redsn0w.app/Contents/MacOS/redsn0w -i 
iPhone3,3_5.0_9A334_Restore.ipsw -r myramdisk.dmg -k 
kernelcache.release.n92.patched

I get the error: "Cannot open myramdisk.dmg"

Original comment by hleste...@gmail.com on 13 Nov 2011 at 10:30

GoogleCodeExporter commented 8 years ago
Alright figured out I had to replace "myramdisk.dmg" with the filename of the 
one that was created. So now when I run the redsn0w command the phone boots 
verbose but then it goes right to an apple logo with a loading bar. The loading 
bar never loads and terminal is stuck on "2011-11-13 16:43:34.888 
redsn0w[1038:707] Loading Maximizer into bundle: com.devteam.redsn0w"

I still cant SSH into my phone, please help!

Original comment by hleste...@gmail.com on 13 Nov 2011 at 10:45

GoogleCodeExporter commented 8 years ago
If myramdisk.dmg does not exists then there is a problem, what error did you 
get when building the ramdisk ?

Original comment by jean.sig...@gmail.com on 16 Nov 2011 at 11:00

GoogleCodeExporter commented 8 years ago
what do you mean you installed mercurial?  how does that get around "-bash hg: 
command not found

Original comment by jpap...@gmail.com on 17 Nov 2011 at 3:05

GoogleCodeExporter commented 8 years ago
Mercurial is a revision control system. It is the tool this project uses to 
manage its source code. You can get it from:

http://mercurial.berkwood.com/

Once it is installed, you can run it using "hg" at the command line (Take a 
look at the periodic table for further insight ;) 

Original comment by 0x56.0x6...@gmail.com on 18 Nov 2011 at 1:53

GoogleCodeExporter commented 8 years ago
hi guys

trying to do the same thing on an iphone 4 on 4.0.1, stuck on apple logo after 
cydia update. 

following the steps here 
http://code.google.com/p/iphone-dataprotection/wiki/README

to ssh into my phone. i am now stuck one step after the BG problem mentioned 
above.

on the page 

IN 
Building custom ramdisk & kernel (Mac OS X)

i'm stuck at: 
python python_scripts/kernel_patcher.py IOS5_IPSW_FOR_YOUR_DEVICE
obviously i hit a: IOError: [Errno 2] No such file or directory: 
'IOS5_IPSW_FOR_YOUR_DEVICE'

where do I go from here? 'IOS5_IPSW_FOR_YOUR_DEVICE' what?!?

thanks in advance for the help. it would be a great deal to me if we can revive 
this machine.

Original comment by ferre...@gmail.com on 6 Jan 2012 at 7:25

GoogleCodeExporter commented 8 years ago
The error message is stating that the filename you provided is not valid.

To fix this, make sure you first have the iOS 5.0 IPSW downloaded for your 
device (in this case, you should be downloading 
iPhone3,1_5.0_9A334_Restore.ipsw).

Then run the command "python python_scripts/kernel_patcher.py 
IOS5_IPSW_FOR_YOUR_DEVICE" again, replacing "IOS5_IPSW_FOR_YOUR_DEVICE" with 
the path and filename of ipsw you downloaded.

For example, if you download the ipsw and save it to your desktop, the correct 
command to run would be "python python_scripts/kernel_patcher.py 
~/Desktop/iPhone3,1_5.0_9A334_Restore.ipsw"

Original comment by 0x56.0x6...@gmail.com on 6 Jan 2012 at 7:57

GoogleCodeExporter commented 8 years ago
will do so right away and report back.
thanks for the support.

it did work. thank you..
will go on with the tutorial and report back. 

thx again. 

Original comment by ferre...@gmail.com on 6 Jan 2012 at 11:19

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi again. Here I am again a little further down the rabbit hole. 

http://code.google.com/p/iphone-dataprotection/wiki/README

Section: Using the ramdisk
1st step:

./redsn0w_mac_0.9.9b8/redsn0w.app/Contents/MacOS/redsn0w -i 
IOS5_IPSW_FOR_YOUR_DEVICE** -r myramdisk.dmg -k 
kernelcache.release.n88****.patched

**mentioned at the top of the tutorial:

REQUIREMENTS:
# iOS 5.0 IPSW for the target device

    +even if the target device runs iOS 4 (iOS 5 kernel is backward compatible)

So it is that IPSW that I used knowing the iphone 4 I have is on ios4 4.01. I 
question if that is the correct way to go.

****For me it was n90 and not n88 as mentioned in the tutorial. so I made sure 
to change it every time needed. 

_
Hit Return to run the code. 

redsn0w window pops up

the phone lite up, ran a bunch of codes, hope again, and eventually got stuck 
at:

plist_rpc: listening on port 1999
running /sbin/sshd
AppleBCMWLANCore:handleIOKitBusyWatchdogTimout(): Error, no successful firmware 
download after 60000 ms!! Giving up...

any opinion on what now? 

Original comment by ferre...@gmail.com on 6 Jan 2012 at 11:56

GoogleCodeExporter commented 8 years ago
That error message can be disregarded. As shown by the line preceding it, ssh 
is now running.

I recommend you continue following the README under the section "Using the 
Ramdisk". After the command to launch redsn0w (which sounds like it was 
successful), you will see instructions for launching usbmux and ssh to connect 
to the device directly. There are also directions for recovering the passcode, 
retrieving a filesystem image (a .dmg with your user data) and decrypting the 
image.

Out of curiosity, what is the goal of your current efforts? I read your first 
post; are you attempting to recover your data or are you attempting to repair 
the issue that is causing your phone to be stuck on the apple logo?

Original comment by 0x56.0x6...@gmail.com on 7 Jan 2012 at 12:23

GoogleCodeExporter commented 8 years ago
tried twice, same same action therefor same result. tried to ssh, since in the 
tutorial it says after you see the BIG "OK" I could ssh in. so i tried to do 
the next steps of the tutorial but nothing happens, Terminal.app (in the two 
attempt done) seem to be hanging, arrow up and down does not cycle me the 
imputed code strings. it types in something like these instead [>.

i thought of using cyber duck app on osx but it's from what i think no use, 
since the connection is going through the usb pipe to connect to the cell, so 
no ip is needed. correct me if i'm wrong. 

something else that differed from the 1st time i tried was:

I had to redo the steps from
Building custom ramdisk & kernel (Mac OS X)

"curl -O -L 
https://sites.google.com/a/iphone-dev.com/files/home/redsn0w_mac_0.9.9b8.zip" 
and on to have a second attempt.

Original comment by ferre...@gmail.com on 7 Jan 2012 at 12:47

GoogleCodeExporter commented 8 years ago
I'm looking for the best scenario, as to revive the iphone by deleting updates 
done via cydia to the substract.
a lesser acceptable conclusion would be to retrieve contacts/photo/apps or app 
list.

when I "python usbmuxd-python-client/tcprelay.py -t 22:2222 1999:1999" terminal 
does not send me back to "admin:" it did not return to me. it just hang. so I 
closed and opened it again, that is probably why i have to run the thing from 
one step above every time.. 

i will go on anyway and see what it gives.. 

Original comment by ferre...@gmail.com on 7 Jan 2012 at 12:58

GoogleCodeExporter commented 8 years ago
I got close, now. it gives me a connection refused. at least a respond, i had 
none since i started this 2 days ago..  

i'm grateful.

Original comment by ferre...@gmail.com on 7 Jan 2012 at 1:00

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
following the README

-python usbmuxd-python-client/tcprelay.py -t 22:2222 1999:1999
-ssh -p 2222 root@localhost

does not respond, or at least don't seem to.

Original comment by ferre...@gmail.com on 7 Jan 2012 at 1:12

GoogleCodeExporter commented 8 years ago
at this point my "arrow up" goes [[A.

i would need to close the terminal and start it again to get a pulse. starting 
from building ramdisk and kernel

Original comment by ferre...@gmail.com on 7 Jan 2012 at 1:15

GoogleCodeExporter commented 8 years ago
IM$ python usbmuxd-python-client/tcprelay.py -t 22:2222 1999:1999
python: can't open file 'usbmuxd-python-client/tcprelay.py': [Errno 2] No such 
file or directory

IM$ ssh -p 2222 root@localhost
ssh: connect to host localhost port 2222: Connection refused

IM$ python python_scripts/demo_bruteforce.py
python: can't open file 'python_scripts/demo_bruteforce.py': [Errno 2] No such 
file or directory
IM$

when done from a new terminal window.

I start not knowing what to try anymore.. 

Original comment by ferre...@gmail.com on 7 Jan 2012 at 1:24

GoogleCodeExporter commented 8 years ago
After you launch tcprelay.py, the terminal window should appear to hang. This 
is because the tcprelay script must stay running to relay data over the USB 
connection. The best thing to do next would be to leave the tcprelay window 
open and open a new terminal window. In the new terminal window, just continue 
where you left off.

In the new terminal window, make sure to change to the "iphone-dataprotection" 
directory. Also, you should not need to start over rebuilding the ramdisk every 
time, just make sure you are in the correct directory (if you open a new 
terminal window, probably just typing "cd iphone-dataprotection" will get you 
into the correct folder).

If what I am saying about folders and changing directories seems unfamiliar to 
you, you may want to check out a resource such as 
http://linuxcommand.org/lts0020.php . A little better understanding of these 
features of the terminal would make this a much easier process, I think.

Cheers.

Original comment by 0x56.0x6...@gmail.com on 7 Jan 2012 at 2:29

GoogleCodeExporter commented 8 years ago
coffee is good at this time of the night..

its building a dmg file at last. 7.32gb so far. i think it will stop around 
20gb. 

everything seems to be there.. it would have not been possible without you. 

if i could ever repay you for the favor done let me know. 

I lack knowledge on the matter at hand I admit. but with this experience i 
understand a bit more of how things work. I'll know better for next time. 

the process is actually very easy ounce you know what is doing what and how to 
use the tools.  

thanks again.

Original comment by ferre...@gmail.com on 7 Jan 2012 at 7:50

GoogleCodeExporter commented 8 years ago
No worries, glad to hear things worked out. You don't owe me anything, just be 
willing to help out the next guy/gal :)

The real thanks go to Jean & Jean (and others, including the jailbreak 
community) who took the time to research this in the first place. Apple tried 
really hard to make sure what we did here is not possible ;)

Original comment by 0x56.0x6...@gmail.com on 7 Jan 2012 at 2:00

GoogleCodeExporter commented 8 years ago
Thanks a lot for helping, i'll clarify the readme about the tcprelay part.

Original comment by jean.sig...@gmail.com on 7 Jan 2012 at 4:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi friends..

a little update here.. 

works on i4 gsm running ios 6.1 w/ boot loop issue. tricky to have it go in dfu 
through but made it at last.

ferrez.

Original comment by ferre...@gmail.com on 11 Feb 2013 at 4:51