Code Monkey home page Code Monkey logo

android_inject's Introduction

android_inject

准备frida服务端环境

  1. 根据自己的平台下载frida服务端并解压 https://github.com/frida/frida/releases

  2. 执行以下命令将服务端推到手机的/data/local/tmp目录 adb push frida-server /data/local/tmp/frida-server

  3. 执行以下命令修改frida-server文件权限 adb shell chmod 777 /data/local/tmp/frida-server

  4. 安装Python的运行环境 pip install frida-tools

准备客户端环境

  1. 将一个脚本注入到Android目标进程 frida -U -l myhook.js com.xxx.xxxx 参数解释:

    • -U 指定对USB设备操作
    • -l 指定加载一个Javascript脚本
    • 最后指定一个进程名,如果想指定进程pid,用-p选项。正在运行的进程可以用frida-ps -U命令查看
  2. 重启一个Android进程并注入脚本 frida -U -l myhook.js -f com.xxx.xxxx 参数解释:

    • -f 指定一个进程,重启它并注入脚本

frida运行过程中,执行%resume重新注入,执行%reload来重新加载脚本;执行exit结束脚本注入

android_inject's People

Contributors

rise-worlds 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.