Skip to content

Solve the number APK challenge using Frida. #388

@cTFk1ller

Description

@cTFk1ller
Java.perform(function() {
 
    const Verify = Java.use("io.asis.ctf2014.numdriod.Verify");
 
    console.log("\n[*] Starting PIN Brute-force, please wait.");
    Java.choose("io.asis.ctf2014.numdriod.MainActivity", {
        onMatch: function(instance) {
            for (var index = 0; index < 9999999; index++) {
                var result = Verify.isOk(instance, ""+index);
                if (result) {
                    console.log("[+] A valid password is: " + index);
                    return;
                }
            }
        },
        onComplete: function() {
            console.log("[-] Complete searching for the instance")
        }
    })
 
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions