Frida
Install Frida
pip install frida-toolscheck the device architecture
adb shell getprop ro.product.cpu.abiDownload extract and install the right Frida Gadget
wget https://github.com/frida/frida/releases/download/16.3.3/frida-gadget-16.3.3-android-x86_64.so.xz
xz -d frida-gadget-16.3.3-android-x86_64.so.xz
adb push frida-gadget-16.3.3-android-x86_64.so /data/local/tmp/Set Permissions on the Gadget:
adb shell
su chmod 755 /data/local/tmp/frida-gadget-16.3.3-android-x86_64.so
export FRIDA_GADGET_LIB=/data/local/tmp/frida-gadget-16.3.3-android-x86_64.soCreate a Frida script to get the databases
The script can be found on my GitHub here: frida_list_databases.js
Download and extract the Frida server:
wget https://github.com/frida/frida/releases/download/16.3.3/frida-server-16.3.3-android-x86_64.xz
xz -d frida-server-16.3.3-android-x86_64.xz
chmod +x frida-server-16.3.3-android-x86_64
adb push frida-server-16.3.3-android-x86_64 /data/local/tmp/Run the Frida server on the device:
adb shell
su
cd /data/local/tmp
./frida-server-16.3.3-android-x86_64 &Make sure the app has launched on the device (or the activity has been started manually
adb shell am start -n com.wezaam.hermesE/.MainActivityAttach to the process:
frida -U -p $(adb shell ps | grep -i com.wezaam.hermes | awk '{print $2}') -l frida_list_databases.jsLast updated
Was this helpful?