GithubHelp home page GithubHelp logo

Comments (11)

KpwnZ avatar KpwnZ commented on May 27, 2024 2

Can confirm kexts command is working now!

$ ipsw kernel kexts 19A348/kernelcache.release.ipad6f
FOUND: 222
0xfffffff00535c000: com.apple.kpi.bsd (21.0.0)
0xfffffff00535c080: com.apple.kpi.libkern (21.0.0)
0xfffffff00535c100: com.apple.kpi.mach (21.0.0)
.........

from ipsw.

KpwnZ avatar KpwnZ commented on May 27, 2024 1

Ok got it. I was able to recreate the issue.

Very strange it works for iPhone12,1 but not the iPad6,11 ??

I usually test the iPhone and the iPod, but not the iPad. Thank you for letting me know about this!

Thanks for your great work!

from ipsw.

blacktop avatar blacktop commented on May 27, 2024

So that looks like you pulled the im4p file directly out of the ipsw. You could have extracted with:

$ ipsw extract -k IPSW.ipsw

However, what you could do with the file you have is:

$ ipsw img4 extract kernelcache.release.ipad6f

Which is extract and lzfse decompress the im4p payload aka the kernelcache

from ipsw.

KpwnZ avatar KpwnZ commented on May 27, 2024
ipsw img4 extract

Got the same error when using img4 extract command

$ ipsw img4 extract kernelcache.release.ipad6f
   • Parsing Im4p             
Error: unabled to parse Im4p: failed to ASN.1 parse Im4p: asn1: structure error: length too large

from ipsw.

blacktop avatar blacktop commented on May 27, 2024

Just to confirm can you run:

$ file kernelcache.release.ipad6f

from ipsw.

KpwnZ avatar KpwnZ commented on May 27, 2024

Oh it seems that it has already been decompressed after using ipsw download kernel.

$ file kernelcache.release.ipad6f
kernelcache.release.ipad6f: Mach-O 64-bit executable arm64

But when I try to run command like kexts or sbopts it shows

$ ipsw kernel sbopts kernelcache.release.ipad6f
Error: failed to read parseSymtab: invalid name in symbol table '2863311530' in record at byte 0x1038

from ipsw.

blacktop avatar blacktop commented on May 27, 2024

Can you please tell me what device that is for? I can't remember what ipad6f is off the top of my head.

from ipsw.

KpwnZ avatar KpwnZ commented on May 27, 2024

It's iPad6,11. I also tried to parse kernelcache of others devices and the same error occurred. And it works well when parsing iOS 13 or 14 kernel.

$ ipsw download kernel --build 19A348 
.........
      • Writing 19A348/kernelcache.release.ipad6d
      • Writing 19A348/kernelcache.release.ipad6d
      • Writing 19A348/kernelcache.release.ipad6f
.........

from ipsw.

blacktop avatar blacktop commented on May 27, 2024

Ok got it. I was able to recreate the issue.

Very strange it works for iPhone12,1 but not the iPad6,11 ??

I usually test the iPhone and the iPod, but not the iPad. Thank you for letting me know about this!

from ipsw.

blacktop avatar blacktop commented on May 27, 2024

So I am releasing a fix now for the ipsw kernel kexts cmd that I believe should cover the cases iPhone/iPod and iPad kernels.

For sbopts it looks like for the phones that info is in the kernel's __DATA_CONST.__const BUT in the iPad it's in the com.apple.security.sandbox kext's __DATA_CONST.__const ?? I need to think a lil' harder on a way to detect which/where I should look and will let you know when I get it merged in.

from ipsw.

blacktop avatar blacktop commented on May 27, 2024

So I am releasing a fix now for the ipsw kernel kexts cmd that I believe should cover the cases iPhone/iPod and iPad kernels.

For sbopts it looks like for the phones that info is in the kernel's __DATA_CONST.__const BUT in the iPad it's in the com.apple.security.sandbox kext's __DATA_CONST.__const ?? I need to think a lil' harder on a way to detect which/where I should look and will let you know when I get it merged in.

I fixed this a while back I guess, because I just tested it and it works now 🤷‍♀️

from ipsw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.