Giter VIP home page Giter VIP logo

Comments (3)

pimterry avatar pimterry commented on August 16, 2024 1

I'm not sure about the exact cause, but I'm confident that it's not related to these scripts, because you get the exact same error without them if you just run:

frida -U -f com.bereal.ft

That means this is either due to Bereal doing some kind of Frida detection (and crashing weirdly on purpose I guess?) or a Frida bug. Your guess is as good as mine ๐Ÿ˜„. I'm going to close this since it's not related to these scripts, but do please share more details here if you do work out what's going on.

from frida-interception-and-unpinning.

pimterry avatar pimterry commented on August 16, 2024 1

Oh neat! That makes sense, very nice. You deleted the command but it looks like that came from https://github.com/apkunpacker/AntiFrida_Bypass which has some other interesting examples too.

I'd like to include fixes for detection approaches like this by default if possible, but it's difficult to do safely - patching strlen to potentially modify any string for example clearly might have side effects and could cause confusing issues. It's fine as a one-off but difficult to include here as standard. If you have any ideas for general-purpose hooks to add here to patch out these kinds of checks reliably for all apps, I'd love to hear about them ๐Ÿ˜„

from frida-interception-and-unpinning.

xKiian avatar xKiian commented on August 16, 2024

ok so i fixed it myself:

  • i disabled debug (it crashed when using it)
  • i added this code at the top of config.js:
Interceptor.attach(Module.findExportByName(null, "strlen"), {
    onEnter: function(args) {
        var cmd = args[0].readCString();
        if (cmd.indexOf("rwxp") !== -1) {          
            cmd = cmd.replaceAll("rwxp", "r-xp");
            args[0].writeUtf8String(cmd);
        }
    }
})
  • run frida -U -l config.js -l android-certificate-unpinning.js -f com.bereal.ft

from frida-interception-and-unpinning.

Related Issues (20)

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.