Comments (7)
Maybe you can try this version? This library has been updated recently.
https://github.com/nkraetzschmar/chainbreaker
from chainbreaker.
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.
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.
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.
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.
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.
That did the trick.
from chainbreaker.
Related Issues (20)
- Local HOT 3
- Missing parentheses
- This doesn't appear to support "Local items"
- ImportError: No module named Crypto.Util HOT 2
- where can I find the macosxml.mem and mem? HOT 1
- What am i doing wrong??
- macOS 11 Big Sur Private Key Table is not available HOT 22
- _APPL_DB_HEADER invalid offset for header? HOT 1
- macOS Monterey Public Key Table is not available HOT 1
- Macos Big Sur 11.6.2 [Invalid Password / Keychain Locked] HOT 2
- Update chainbreaker.py to work with Python 3.x HOT 20
- How do I export an `non-extractable` certificate HOT 2
- Dump passkeys
- Chainbreaker2 question
- Chainbreaker2 hashing issue
- how to access to local items db ?
- chain break wont grabbing Web form password
- Application Bundles Using Chainbreaker Crashing HOT 1
- cannot import name 'args_control' from partially initialized module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chainbreaker.