What is a program that can just patch the LLB and nothing else?

Discussion in 'iPod touch 2G Jailbreak: redsn0w, 24kpwn, etc.' started by meg4pwn3r, Mar 14, 2009.

  1. meg4pwn3r

    meg4pwn3r New Member

    Joined:
    Jan 29, 2009
    Messages:
    69
    Likes Received:
    0
    What is a program that can just patch the LLB and nothing else?
  2. jfb392

    jfb392 New Member

    Joined:
    Oct 20, 2007
    Messages:
    2,512
    Likes Received:
    21
    Device:
    iPod touch
    bspatch using the 24kpwn patch.

    Syntax would be:
    Code:
    bspatch LLB.n72ap.RELEASE.img3 LLB.new LLB.n72ap.RELEASE.patch
    
    Also, if you're going to distribute it, you'll need to include the bzip2 executable and dynamic-link library.
  3. meg4pwn3r

    meg4pwn3r New Member

    Joined:
    Jan 29, 2009
    Messages:
    69
    Likes Received:
    0
    Thanks Dude!
  4. jfb392

    jfb392 New Member

    Joined:
    Oct 20, 2007
    Messages:
    2,512
    Likes Received:
    21
    Device:
    iPod touch
    No problem.
    I know this is because I reported your thread for having modified Apple code; obviously you obtained an pre-patched LLB from somewhere and didn't know how to go about patching a stock file, so I'm glad to help.
    Patching > stealing.
    It's also much easier than distributing a larger, patched file.
    Instead, you can distribute a small patching program and even smaller patch.

    Please Register or Log in to view images

  5. meg4pwn3r

    meg4pwn3r New Member

    Joined:
    Jan 29, 2009
    Messages:
    69
    Likes Received:
    0
    When i enter the syntax all it does is go to the next line, how do i now that it is patched?
  6. jfb392

    jfb392 New Member

    Joined:
    Oct 20, 2007
    Messages:
    2,512
    Likes Received:
    21
    Device:
    iPod touch
    You can take the SHA1 of the file; it should be:
    Code:
    82734c7cdf945ba5421b83962aab3ab91e4fb23a
    
    You can either use the OpenSSL utility to generate the hash (openssl sha1 LLB.n72ap.RELEASE.img3) or Microsoft's fciv utility, which can be found here (syntax would be fciv -sha1 LLB.n72ap.RELEASE.img3).

    Also, since bspatch did not return any errors or crash, you can assume it's patched.
  7. meg4pwn3r

    meg4pwn3r New Member

    Joined:
    Jan 29, 2009
    Messages:
    69
    Likes Received:
    0
    Does it make a copy of the llb then patch or does it just patch the original
  8. jfb392

    jfb392 New Member

    Joined:
    Oct 20, 2007
    Messages:
    2,512
    Likes Received:
    21
    Device:
    iPod touch
    Well, I should have given you a better syntax to begin with:
    Code:
     bspatch <in file> <out file> <patch>
    So, the second argument will be the out (patched) file.
    The original isn't modified at all; it's patched in memory and written out into the file specified by the second argument.

Share This Page