GithubHelp home page GithubHelp logo

isabella232 / jailbreak Goto Github PK

View Code? Open in Web Editor NEW

This project forked from isecpartners/jailbreak

0.0 0.0 0.0 471 KB

Jailbreak

License: BSD 2-Clause "Simplified" License

C++ 58.50% C 39.38% Batchfile 2.12%

jailbreak's Introduction

Jailbreak - 4.0

Written by: Andreas Junestam, Chris Clark, Jason Copenhaver

Jailbreak exports certificates marked as non-exportable from the Windows certificate store. This can help when you need to extract certificates for backup or testing. You must have permissions to use the private key on the filesystem in order for jailbreak to work -- Jailbreak cannot export keys stored on smartcards.

Jailbreak consists of two parts. The jailbreak32.exe launcher program and the jailbreakhook32.dll function hooking DLL. (64-bit versions exists as well.) jailbreak32.exe launches any application and injects the jailbreakhook32.dll into the process. The jailbreakhook32.dll hooks cryptsp.dll!CryptGetKeyParam function to inform any callers that the certificate is exportable. It also hooks the rsaenh.dll!CPExportKey function to inform rsaenh.dll that the certificate is exportable.

How to use

There are three sample .bat files included.

jbcert.bat

  1. Run jbcert.bat while running as administrator
  2. A mmc with the Local Machine and Current-User Certificate snap-ins will load
  3. All certificates are now marked as exportable
  4. Use the certificate UI to export certificates and their private keys.

jbcsp.bat

jbcsp exports keys that are contained within the CSP and not associated with a certificate. jbscp requires .NET Framework 2.0.

Run: jbscp.bat "Key container" "output file name" [-u]

-u is an optional parameter and will export from the user store instead of the machine store.

jbstore.bat

JBStore exports all of the certificates in the "MY" user store. This has the advantage that it does not require user interaction with MMC.

JBStore can be set to export from either the CURRENT_USER\MY store or the LOCAL_MACHINE\MY store. The default is CURRENT_USER\MY.

To export from the LOCAL_MACHINE\MY store: jbstore.bat -a -o <outfile> -p <password>

To export from the CURRENT_USER\MY store:

jbstore.bat -s "USER" -o <outfile> -p <password>

Acknowledgements

Thank you to those who have performed testing or provided feedback. Especially Andreas Klein for the jbcsp suggestions and Tom Aafloen for testing it on Vista x64.

(c) 2007-2014 iSEC Partners (https://www.isecpartners.com)

jailbreak's People

Contributors

iamcal avatar jcopenha avatar

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.