Skip to content

Instantly share code, notes, and snippets.

@cihanmehmet
Last active June 17, 2024 21:54
Show Gist options
  • Save cihanmehmet/b8da8b4abfee89f013ddcacfc464c68b to your computer and use it in GitHub Desktop.
Save cihanmehmet/b8da8b4abfee89f013ddcacfc464c68b to your computer and use it in GitHub Desktop.
Andorid 7-10 Burpsuite Certificate İnstall
#!/usr/bin/env bash
wget -e use_proxy=yes -e http_proxy=127.0.0.1:8080 http://burp/cert -O cacert.der #open burp suite | Proxy > Options > CA Certificate > Export in DER format
#openssl x509 -inform DER -in cacert.der -out cacert.pem
cp cacert.pem $(openssl x509 -inform PEM -subject_hash_old -in cacert.pem | head -1)".0" #9a5ba575.0
#--------------------------------------------------------------------------------------------------------
adb root
adb remount
adb push 9a5ba575.0 /sdcard/
#--------------------------------------------------------------------------------------------------------
adb shell cp /sdcard/9a5ba575.0 /system/etc/security/cacerts/
adb shell chmod 644 /system/etc/security/cacerts/9a5ba575.0
#mv /sdcard/9a5ba575.0 /system/etc/security/cacerts/
#chmod 644 /system/etc/security/cacerts/9a5ba575.0
adb shell reboot
@cihanmehmet
Copy link
Author

Emulator Connect

adb devices -l
adb -s 127.0.0.1:5555 shell

Android Burp Cert Add

wget -e use_proxy=yes -e http_proxy=127.0.0.1:8080 http://burp/cert -O /tmp/cacert.der
openssl x509 -inform DER -in cacert.der -out cacert.pem
cp cacert.pem $(openssl x509 -inform PEM -subject_hash_old -in cacert.pem | head -1)".0"
adb root && adb remount
adb push 9a5ba575.0 /sdcard/
adb shell
cp /sdcard/9a5ba575.0 /system/etc/security/cacerts/
chmod 644 /system/etc/security/cacerts/9a5ba575.0

Frida Android Install

wget https://github.com/frida/frida/releases/download/16.0.19/frida-server-16.0.19-android-arm64.xz
adb push frida-server /data/local/tmp/frida-server
adb shell chmod 777 /data/local/tmp/frida-server
adb push fridascript.js /data/local/tmp/fridascript.js
adb shell /data/local/tmp/frida-server &
adb shell 
/data/local/tmp/frida-server &

Process Emulator Frida

frida-ps -U

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