ios-backtrace-http-req

by
4 views 78a8936f...

Description

Backtrace HTTP request.

How to Use

Download the script and run it with Frida CLI:

Download Script

Then run with Frida:

frida -U -f YOUR_PACKAGE_NAME -l ios-backtrace-http-req.js

Replace YOUR_PACKAGE_NAME with the target app's package name.

Source Code

JavaScript
var resolver = new ApiResolver('objc');

resolver.enumerateMatches('-[* initWithURL*]', {
    onMatch: function(match) {
        Interceptor.attach(ptr(match.address), {
            onEnter: function(args) {
                var url = new ObjC.Object(args[2]);
                console.log('New req to ' + url.toString() + ':\n' +
                    Thread.backtrace(this.context, Backtracer.ACCURATE)
                    .map(DebugSymbol.fromAddress).join('\n') + '\n');
            }
        });
        console.log('[i] ' + match.name + ' hooked.');
    },
    onComplete: function() { /* MUST NOT be omitted */ }
});
Share this script:
Twitter LinkedIn

Comments

Login or Sign up to leave a comment.
Loading comments...