Giter VIP home page Giter VIP logo

injectfridagadget's Introduction

InjectFridaGadget

Script for injecting Frida gadget into the APK so that frida hooking can be done on non-rooted devices. This is based on the concept as described -> https://lief.quarkslab.com/doc/latest/tutorials/09_frida_lief.html Frida Gadget can be renamed to any random name to avoid apps detecting frida by name.

Usage

Create keystore file and modify the alias, password before using the script

#To generate APK for all architectures(arm64,armv7,x86,x86_64)
sh hooktest.sh <your_app.apk> <your.so> libfrida.so
#To generate APK for specific architecture say arm64
./hooktest.sh <your.apk> <your.so> libfrida.so arm64
adb install <your_app>_hook_test.apk
#Push the frida script (myscript.js) file onto the device.
adb push myscript.js /data/local/tmp
#Pls note the name of the js can be changed, provided you change it accordingly in libgadget.config.so.
#In the device, make the myscript.js as executable
adb shell chmod +x /data/local/tmp/myscript.js

Open the App and when app loads its own native library, frida gadget will also be loaded and hooking would have started already. You can check the logcat with tag "frida-gadget"

Constraint

There should be atleast 1 native library in the app for this script to work. Alternatively this can be done by tampering the smali file to load the frida gadget library.

injectfridagadget's People

Contributors

darvincisec avatar darvinview avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.