Skip to content

abhinashjain/keychain-dumper-plusplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keychain-dumper-plusplus

Improve existing keychain_dumper 1 by adding the functionality to read certificates and keys from the iOS keychain.

Introduction

Original keychain_dumper 1 usually fails to retreive identity certs from the iOS keychain.
Commit in 2 addresses this problem, but fails to compile the build and generate the proper binary.

This repo is kind of a makeshift attempt to address the compilation problem by modifying some of the headers in the code and flags, SDKs, compiler paths in the Makefile.

Build

On Mac:

Change the arch type in Makefile for the target iOS device architecture.
Then run the below command to get the keychaindumper++ executable.
make

In case of any issue, try to change the SDK | target_min_version | gcc/clang path | open a ticket.

On iOS:

Simply run the command:
ldid -Sentitlements.xml keychaindumper++

For usage options:

./keychaindumper++ -h

Tested

keychaindumper++: For both 32 and 64-bit arch type.
Device: iPad Mini 4 (64-bit device).
iOS version: 9.3.3 (jailbroken).
SDK version used for compilation: iPhoneOS11.4.sdk
Crash: Might get few crashes but shouldn't affect the functionality.
Result: Able to fetch certs and private keys from iOS keychain along with the already existing functionality of reading various types of passwords.

Output for /usr/bin/gcc -v:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Source

  1. Original keychain_dumper
  2. Original commit to fetch certs and keys functionality
  3. Older SDKs

About

Improve keychain_dumper by adding the functionality to fetch certificates and keys stored in iOS keychain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published