Skip to content
/ Pushcrt Public

Push the burp.der certificate to android system cacerts

License

Notifications You must be signed in to change notification settings

7absec/Pushcrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pushcrt

Pushcrt is a Python utility that allows you to install custom CA certificates (e.g., Burp Suite) into the Android system trust store via ADB, even when adbd cannot run as root. This script leverages su (Magisk) access and dynamically hashes certificates into the required .0 filename format.


πŸ”₯ Features

  • βœ… Supports .crt, .cer, .der, .pem
  • βœ… Auto-converts to PEM format
  • βœ… Calculates .0 filename hash dynamically via OpenSSL
  • βœ… Pushes cert to Android system store with proper permissions
  • βœ… Works even if adbd is not running as root (uses su)
  • βœ… Dry-run support to simulate actions
  • βœ… Verbose logging for debugging
  • βœ… Error handling for all common issues

βš™οΈ Requirements

  • Python 3.x
  • adb in your PATH
  • openssl in your PATH
  • Android device with:
    • Root access (via su, e.g. Magisk)
    • USB debugging enabled

πŸ› οΈ Installation

  1. Clone the repository:
git clone https://github.com/7absec/Pushcrt.git
cd Pushcrt

🧩 Install Dependencies

No extra Python libraries are needed.

Just make sure the following are installed and added to your system PATH:

πŸ’‘ For Windows Users

  • Install OpenSSL using Chocolatey:

    choco install openssl -y

πŸš€ Usage

python pushcrt.py <certificate_file>
OR
python pushcrt.py burp.crt
OR
python pushcrt.py burp.crt --dry-run --verbose

🧩 Options

Option Description
--dry-run Show the commands that would be run without actually executing them. Useful for testing.
--verbose Enable detailed logging for debugging purposes.

⚠️ Note

Do not restart your device after pushing the certificate, or the custom CA will be wiped from memory (since it's mounted on a tmpfs).

About

Push the burp.der certificate to android system cacerts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages