Code Monkey home page Code Monkey logo

fridalib's Introduction

FridaLib

iOS/android frida library for reversing

Android

funtions in androdFridaLib

  • backtrace : Print java call stack

    function backtrace()
  • java_single_hook : hook java class method and auto log args and return value

    function java_single_hook(className, methd, callbackFunc)
  • java_hook : hook java class all overload methods and auto log args and return value

    function java_hook(className, func, callbackFunc)
  • native_hook_symbol : hook native function by symbol

    function native_hook_symbol(moduleName, funcName, onEnterFunc, onLeaveFunc)
  • native_hook_address : hook native function by address

    function native_hook_address(moduleName, funcAddr, onEnterFunc, onLeaveFunc)
  • print_class_fields : print class object all fields

    function print_class_fields(obj)
  • bytes_to_string : byte data convert to java string

    function bytes_to_string(data)
  • string_to_bytes : string convert to byte data

    function string_to_bytes(str)
  • hook_register_natives : hook RegisterNatives in libart.so

    function hook_register_natives()

sample

some test script about app and service hook in android

iOS

funtions in iOSFridaLib

  • get_image_vm_slide : get image vm address slide

    function get_image_vm_slide(modulePath)
  • get_all_objc_class : get all ObjC class by image path

    function get_all_objc_class(modulePath)
  • get_all_class_methods : get all methods of a class

    function get_all_class_methods(classname)
  • get_info_form_address : get some info from addr

    function get_info_form_address(address)
    
  • find_symbol_from_address : find best match objc symbol from address

    function find_symbol_from_address(modulePath,addr)
  • backtrace

  • function backtrace(onlyMainModule)
  • xbacktrace : print a symbol call stack

    function xbacktrace(context)

sample

this is some test js script loaded into frida python script

you can add your test js script similar to provided easily

How to use

you can refer to the sample

Surpise

this project is twitted by @Mobile Security at https://twitter.com/mobilesecurity_/status/1172116516839546883

emmmm, But it just a baby projet. Be glade that you make it grouth with me

Reference

fridalib's People

Contributors

4ch12dy avatar

Watchers

James Cloos 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.