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.
- β
Supports
.crt,.cer,.der,.pem - β Auto-converts to PEM format
- β
Calculates
.0filename hash dynamically via OpenSSL - β Pushes cert to Android system store with proper permissions
- β
Works even if
adbdis not running as root (usessu) - β Dry-run support to simulate actions
- β Verbose logging for debugging
- β Error handling for all common issues
- Python 3.x
adbin your PATHopensslin your PATH- Android device with:
- Root access (via
su, e.g. Magisk) - USB debugging enabled
- Root access (via
- Clone the repository:
git clone https://github.com/7absec/Pushcrt.git
cd PushcrtNo extra Python libraries are needed.
Just make sure the following are installed and added to your system PATH:
-
Install OpenSSL using Chocolatey:
choco install openssl -y
python pushcrt.py <certificate_file>
OR
python pushcrt.py burp.crt
OR
python pushcrt.py burp.crt --dry-run --verbose| 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. |
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).