1. Kyle Matthews's Avatar
    Check it out!

    http://www.modmyi.com/wiki/index.php..._iPHUC_in_OS_X
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
    2007-08-07 11:49 PM
  2. muncle's Avatar
    not sure if its just me...but i get stuck right after entering setafc com.apple.afc2

    when i input the "getfile /usr/sbin/update /phonedmg/sshkit/update" it says unable to access or something like that..

    i got so far too!
    Sent from my iPhone
    2007-08-08 03:49 AM
  3. Kyle Matthews's Avatar
    When you enter the setafc command, are you getting two lines with 0's at the end of them? Or are you getting an AFC error? If you are getting an AFC error, you have to type exit, run iPHUC again (by entering ./iPHUC) and enter the setafc command again.

    Just means it didn't set the afc (or jailbreak it, same thing, just easier).
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
    2007-08-08 03:57 AM
  4. muncle's Avatar
    i followed the tutorial, and the first time i got that error. so i typed exit then ./iPHUC and entered the stuff again. i got the error again, so i tried more..

    i kept getting the error, so this time i tried to do it again and i tried entering the setafc and when i got the error, instead of entering "exit" i entered the setafc thing again, and this time i got both zeros.

    still didnt work though.

    hmm...i cant seem to figure out whats wrong

    EDIT::

    also, instead of saying this -

    InvalidResponse
    AMDeviceStartService AFC: -402653165
    AFCConnectionOpen: 0

    all it says is this

    AMDeviceStartService AFC: -402653165
    AFCConnectionOpen: 0
    Last edited by muncle; 2007-08-08 at 04:17 AM.
    Sent from my iPhone
    2007-08-08 04:14 AM
  5. Kyle Matthews's Avatar
    You have of course already followed the Jailbreak Wiki, correct? We can't change the afc if you haven't created the second one yet by jailbreaking with iActivator...
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
    2007-08-08 04:24 AM
  6. muncle's Avatar
    yes, i have.

    i'll just try reinstalling and restoring and see if that will do the trick.
    Sent from my iPhone
    2007-08-08 04:59 AM
  7. CyberGreg's Avatar
    Perhaps I'm just paranoid....

    If we all follow the same instructions, anyone could get root access to any of our iPhones, in two ways.

    Vulnerability 1: (lower risk, needs to be connected via usb)
    afc
    In the Services.plist file any name will work. i.e setafc Big.Bird (if that's what you call the second instance instead of com.apple.afc2).

    Vulnerability 2: (higher risk, needs WiFi)
    ssh root password
    I have changed my root password but I bet if I went someplace where there's a bunch of iPhones I could easily connect with 'dottie' (obviously if it was hacked)
    To change the root password

    perl -e 'print crypt("MYPASSWORD", "XU");'

    Where MYPASSWORD is the new password you want, and XU is a random two-letter salt. Copy the encrypted output and replace the existing one in
    /etc/master.passwd on the phone.

    Last edited by CyberGreg; 2007-08-08 at 06:04 AM.
    2007-08-08 05:56 AM
  8. lilscrappydew25's Avatar
    I get this error

    >> By The iPhoneDev Team: nightwatch geohot ixtli warren nall mjc operator
    initPrivateFunctions: this is still not clean. Architecture: powerpc
    AMDeviceNotificationSubscribe: 0
    CFRunLoop: Waiting for iPhone.
    notification: iPhone attached.
    AMDeviceConnect: 0
    AMDeviceIsPaired: 1
    AMDeviceValidatePairing: 0
    AMDeviceStartSession: 0
    AMDeviceStartService AFC: 0
    AFCConnectionOpen: 0
    AFCPlatformInit: (no retval)
    notification: Entering shell in Normal Mode.
    shell: Entering loop.
    (iPHUC) /: setafc com.apple.afc2
    AMDeviceStartService AFC: 0
    AFCConnectionOpen: 0
    (iPHUC) /: ls
    .
    ..
    Applications
    Library
    System
    bin
    cores
    dev
    etc
    mach
    private
    sbin
    tmp
    usr
    var
    (iPHUC) /: getfile /usr/sbin/update /phonedmg/sshkit/update
    remote: /usr/sbin/update
    local: /phonedmg/sshkit/update
    AFCFileRefOpen: opening remote path '/usr/sbin/update'
    AFCFileRefRead: reading 8924 bytes into buffer
    getfile: Failed to open local file '/phonedmg/sshkit/update'
    2007-08-08 07:22 AM
  9. Kyle Matthews's Avatar
    Do you have a /phonedmg/sshkit folder?
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
    2007-08-08 07:43 AM
  10. kargod's Avatar
    I'm getting the same error:

    (iPHUC) /: getfile /usr/sbin/update /phonedmg/sshkit/update
    remote: /usr/sbin/update
    local: /phonedmg/sshkit/update
    AFCFileRefOpen: opening remote path '/usr/sbin/update'
    AFCFileRefRead: reading 8924 bytes into buffer
    getfile: Failed to open local file '/phonedmg/sshkit/update'


    I've dragged the files from the 'sshkit' folder to the new 'sshkit' folder in phonedmg
    2007-08-08 08:31 AM
  11. Kyle Matthews's Avatar
    Is your phonedmg folder in your Home directory or Desktop? Needs to be Home for this to work...
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews
    2007-08-08 08:33 AM
  12. kargod's Avatar
    if i click on Macintosh HD it's in the directory with the house next to it called 'kargod' (kargod is my username)... so i'm pretty sure that it is in my home folder

    i don't know much about coding, but another problem i see is that there is no file called 'com.apple.update.plist' in my LaunchDAEMONS folder... dunno what that means or if that helps.

    also, when i copy and paste this line of code:

    cd /phonedmg/iphuc/iPhone/trunk/iPHUC

    it comes up with 'bash: cd: /phonedmg/iphuc/iPhone/trunk/iPHUC: No such file or directory'

    however, when I type in:

    cd phonedmg/iphuc/iPhone/trunk/iPHUC

    it works just fine.

    again, i don't know if any of this really matters, but I really want to get NES up and running on the iphone so i'm willing to cooperate as much as possible.

    (one more thing, in the sshkit folder the 'update' file is called update.sh)
    Last edited by kargod; 2007-08-08 at 10:11 AM. Reason: Automerged Doublepost
    2007-08-08 08:42 AM
  13. lilscrappydew25's Avatar
    yes, my phonedmg file is in my home folder, and I labeled the file inside sshkit
    2007-08-08 12:53 PM
  14. DrAg0n0485's Avatar
    i seem to be getting those same errors also
    2007-08-08 06:39 PM
  15. j0hnnyw3st's Avatar
    *raises hand* me too
    2007-08-08 07:16 PM
  16. drackett's Avatar
    I am also getting this error. My /phonedmg/sshkit/ does exist and is in my home directory.
    2007-08-08 08:57 PM
  17. CyberGreg's Avatar
    if i click on Macintosh HD it's in the directory with the house next to it called 'kargod' (kargod is my username)... so i'm pretty sure that it is in my home folder

    i don't know much about coding, but another problem i see is that there is no file called 'com.apple.update.plist' in my LaunchDAEMONS folder... dunno what that means or if that helps.

    also, when i copy and paste this line of code:

    cd /phonedmg/iphuc/iPhone/trunk/iPHUC

    it comes up with 'bash: cd: /phonedmg/iphuc/iPhone/trunk/iPHUC: No such file or directory'

    however, when I type in:

    cd phonedmg/iphuc/iPhone/trunk/iPHUC

    it works just fine.

    again, i don't know if any of this really matters, but I really want to get NES up and running on the iphone so i'm willing to cooperate as much as possible.

    (one more thing, in the sshkit folder the 'update' file is called update.sh)
    Actually, that is not the same file. Any .sh file is a saved shell script while the 'update' file is the actual iPhone program / application that will update the iPhone when it is turned on.

    The process is to replace the iPhone 'update' program with the terminal 'chmod' program. Then on the next reboot of your iPhone, it will process the items listed in the update.plist (that's why you have to upload a new copy) and make it so the 'shell' for sh is 'executable' (and a couple of other programs, too). If that did or does not happen, the newly placed files on your iPhone are flagged as like documents, not applications. Once you try and run, say Terminal all you get is the white screen because the 'terminal' app can't run, or rather isn't 'allowed' to execute. Welcome to the cool world of UNIX.
    2007-08-08 09:12 PM
  18. kargod's Avatar
    CyberGreg

    Thanks, I understand what you are saying (I think).
    However, I don't know how to execute anything of what you suggested.
    I was wondering if there is a step by step command/ instructions guide.
    This wiki guide is really useful until i run into this little error.
    2007-08-08 11:06 PM
  19. j0hnnyw3st's Avatar
    hmm ive tried restoring my phone and getting all new files multiple times and i am still getting:
    (iPHUC) /: getfile /usr/sbin/update /phonedmg/sshkit/update
    AFCFileRefOpen: opening remote path '/usr/sbin/update'
    AFCFileRefRead: reading 8924 bytes into buffer
    getfile: Failed to open local file '/phonedmg/sshkit/update'
    2007-08-08 11:53 PM
  20. beetleguise's Avatar
    Yeah i am getting the same error and everything is in the right directory.
    (is the update file complete?)

    (iPHUC) /: getfile /usr/sbin/update /phonedmg/sshkit/update.sh
    remote: /usr/sbin/update
    local: /phonedmg/sshkit/update.sh
    AFCFileRefOpen: opening remote path '/usr/sbin/update'
    AFCFileRefRead: reading 8924 bytes into buffer
    getfile: Failed to open local file '/phonedmg/sshkit/update.sh'
    2007-08-09 12:24 AM
46 123
LINK TO POST COPIED TO CLIPBOARD