LogoLogo
  • About Me
  • Notes
    • Android Pentesting
      • First Android App
      • ADB
      • The INTERNET Permission
      • Installing Certificate in User Store
      • Installing system certificates
      • Install system certificates on android 14
      • apktool (for patching and decompiling)
      • Advanced Network interception using VPN
      • DNS Spoofing and Transparent Proxy
      • HTTP Mock
      • APK
      • Static analysis
        • Getting APK from a Device
      • Case Study: A Weather App
      • Frida & Objection
      • Frida Scripts
        • Tracing Activities
        • Tracing Fragments
      • Frida Trace
      • SSL Validation Bypasses
Powered by GitBook
On this page

Was this helpful?

  1. Notes
  2. Android Pentesting

Frida & Objection

PreviousCase Study: A Weather AppNextFrida Scripts

Last updated 2 days ago

Was this helpful?

  • Installation

    • frida - pip install frida-tools or pip3 install frida-tools depending on what u are using.

    • objection - pip install objection or pip3 install objection depending on what u are using.

  • Patching with objection to inject Frida

    objection patchapk -s .\\FridaTarget.apk
  • Connecting to target application patched with objection

    frida -U FridaTarget
    • -U is used to tell the frida to connect the target application via USB (also works for emulators).

  • Installing frida server in the emulator

    • push the frida-server file from local pc to the emulator

    adb push frida-server /data/local/tmp/
    • Run as root make the frida-server file executable

    adb shell
    su
    cd /data/local/tmp/
    chmod +x frida-server
    • Run the server

    ./frida-server
    • Now connect to any running apps using;-

    frida -U <APP_NAME_LIKE_FridaTarget_or_OP>
  • Creating frida scripts

    • Although we can create frida scripts in many languages but JavaScript API is documented in better way than other.

    • For creating own frida scripts refer:-

  • Loading frida scripts

    • To load frida scripts we use -l flag

    frida -U -l script.js FridaTarget
    • For more options see help menu of frida

    frida --help

https://frida.re/docs/javascript-api/