Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve the number APK challenge using Frida. #388

Open
cTFk1ller opened this issue Jun 5, 2023 · 0 comments
Open

Solve the number APK challenge using Frida. #388

cTFk1ller opened this issue Jun 5, 2023 · 0 comments

Comments

@cTFk1ller
Copy link

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")
        }
    })
 
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant