This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see https://httptoolkit.tech/blog/chrome-android-certificate-transparency/ | |
# put your Burp cacert.der in the current working directory! | |
FINGERPRINT=`openssl x509 -in cacert.der -inform der -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64` | |
echo "chrome --ignore-certificate-errors-spki-list=$FINGERPRINT" > chrome.sh | |
adb push chrome.sh /data/local/tmp/chrome.sh | |
adb shell su -c cp /data/local/tmp/chrome.sh /data/local/chrome-command-line | |
adb shell su -c cp /data/local/tmp/chrome.sh /data/local/android-webview-command-line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
if not sys.version.startswith('3'): | |
print('\n[-] This script will only work with Python3. Sorry!\n') | |
exit() | |
import subprocess | |
import os |