iOS sqlite3

by
4 views 81d2352f...

Description

dump SQL queries on iOS

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-sqlite3.js

Replace YOUR_PACKAGE_NAME with the target app's package name.

Source Code

JavaScript
var func_sqlite3_prepare_v2 = Module.findExportByName('libsqlite3.dylib', 'sqlite3_prepare_v2');

Interceptor.attach(func_sqlite3_prepare_v2, {
    onEnter: function(args) {
        var sqlite3_stmt = args[1];
        console.log('SQL: ' + sqlite3_stmt.readCString());
    },

    onLeave: function(retval) {}

});
Share this script:
Twitter LinkedIn

Comments

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