Code Monkey home page Code Monkey logo

Comments (7)

zangse avatar zangse commented on August 11, 2024

Maybe you can try this version? This library has been updated recently.
https://github.com/nkraetzschmar/chainbreaker

from chainbreaker.

ericfitz avatar ericfitz commented on August 11, 2024

Thank you for the suggestion. I tried this, specifically I added these lines to _get_base_address (~line 556), in addition to the existing conditionals, in accordance with nkraetzschmar@75c52d1

        if table_name >= 0x4000 and table_name < 0x5000:
            table_name = 15
        if table_name >= 0x5000 and table_name < 0x6000:
            table_name = 16

The error is now gone, but this still fails to export private keys from Mojave's system keychain, with either a password or using an unlock file while the keychain is unlocked. The export seems to work but when I examine the key file that is written, it contains the text "[Invalid Password / Keychain Locked]".

from chainbreaker.

ericfitz avatar ericfitz commented on August 11, 2024

I put a $100 bounty up on this issue: https://app.bountysource.com/issues/105707095-private-key-export-from-macos-monterey-system-keychain-fails-with-invalid-password-keychain-locked

from chainbreaker.

zangse avatar zangse commented on August 11, 2024

Hi @ericfitz, Have you tried it with SystemKey?

 ./chainbreaker.py -p -o ~/cert/ --export-private-keys /Library/Keychains/System.keychain --unlock-file /var/db/SystemKey

from chainbreaker.

ericfitz avatar ericfitz commented on August 11, 2024

Yes, I did try that before I updated the issue. I ran both with and without sudo. Here's the error I got:
IOError: [Errno 1] Operation not permitted: '/var/db/SystemKey'

from chainbreaker.

zangse avatar zangse commented on August 11, 2024

Yes, I did try that before I updated the issue. I ran both with and without sudo. Here's the error I got: IOError: [Errno 1] Operation not permitted: '/var/db/SystemKey'

Hi @ericfitz, in this case, you should disable Macos SIP first.
https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection

from chainbreaker.

ericfitz avatar ericfitz commented on August 11, 2024

That did the trick.

from chainbreaker.

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.