ios-disable-ssl-check

by
4 views 5a3e9df0...

Description

Disable SSL certificate check for iOS app.

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-disable-ssl-check.js

Replace YOUR_PACKAGE_NAME with the target app's package name.

Source Code

JavaScript
ObjC.schedule(ObjC.mainQueue, function() {
    var version = ObjC.classes.UIDevice.currentDevice()
        .systemVersion()
        .toString();
    var mainVersion = parseInt(version.split(".")[0]);
    var fname = "nw_tls_create_peer_trust";
    if (mainVersion < 11) {
        fname = "tls_helper_create_peer_trust";
    }
    var hookFunction = Module.findExportByName(null, fname);

    Interceptor.attach(hookFunction, {
        onLeave: function(retval) {
            retval.replace(0);
        },
    });
});
Share this script:
Twitter LinkedIn

Comments

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