Skip to content

Instantly share code, notes, and snippets.

@JJK96
Last active September 27, 2022 07:43
Show Gist options
  • Save JJK96/8d56f49f41a696468a2a53372aea6211 to your computer and use it in GitHub Desktop.
Save JJK96/8d56f49f41a696468a2a53372aea6211 to your computer and use it in GitHub Desktop.
Install system certificate and start frida
setenforce 0
echo creating new cacerts folder
mount -t tmpfs tmpfs /system/etc/security/cacerts
echo copying user cacerts to system cacerts
cp /data/misc/user/0/cacerts-added/* /system/etc/security/cacerts/
@JJK96
Copy link
Author

JJK96 commented Sep 27, 2022

A script to install user certificates as system certificates for running all network traffic through a proxy such as Burp Suite.

Start the script by copying it to the phone and sourcing it:
. ./start.sh

Prerequisites:

  • Rooted phone
  • Installed a user certificate

Steps taken in the script:

  • Disable SE linux
  • Mount new tmpfs over security folder
  • Copy installed user certificates to system cacerts folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment