Giter Site home page Giter Site logo

belinkang / frida-skeleton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from margular/frida-skeleton

0.0 0.0 0.0 5.16 MB

本项目旨在帮助安卓测试工程师更方便地hook apk,并且自带证书绑定绕过功能

Home Page: https://wiki.margular.com/frida-skeleton

License: MIT License

Java 6.61% JavaScript 41.89% Python 51.50%

frida-skeleton's Introduction

一句话简介

frida-skeleton会根据指定的正则表达式持续监听并hook对应的程序,遍历scripts目录下的所有js文件并将它们全部加载用以hook这些程序

frida-skeleton

使用示例

你可以在这里获取示例中的apk:示例APK

asciicast

特性

更简洁的hook代码

原生frida的hook代码:

var MainActivity = Java.use("io.github.margular.MainActivity");

MainActivity.getBestLanguage.implementation = function (lang) {
    var sendString = Date();
    sendString += " MainActivity.getBestLanguage(" + lang + ")";
    send(sendString);

    var bestLang = this.getBestLanguage(lang);
    bestLang = "Python3";
    sendString += " => " + bestLang;
    send(sendString);

    return bestLang;
}

frida-skeleton的hook代码(路径为scripts/main.js):

var MainActivity = Java.use('io.github.margular.MainActivity');

Common.impl(MainActivity.getBestLanguage, function (lang) {
    // 此处可以进行代码修改,这里我直接返回了一个自定义的值
    return 'Python3';
});

它们的输出相同,frida-skeleton通过实现一个Common.impl使得它会在hook函数的之前、之后都自动地打印日志信息,如下图所示:

更多特性

请参看:https://wiki.margular.com/frida-skeleton

frida-skeleton's People

Contributors

margular 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.