Skip to content

Instantly share code, notes, and snippets.

@Romern
Created February 11, 2024 19:03
Show Gist options
  • Save Romern/a50c98eea20139add4c1a80a7b69b063 to your computer and use it in GitHub Desktop.
Save Romern/a50c98eea20139add4c1a80a7b69b063 to your computer and use it in GitHub Desktop.
Frida script to use WhasApp after the login has failed. This way messages can still be read even if the whatsapp login has been transfered
Java.enumerateClassLoaders({
onMatch: function(loader){
Java.classFactory.loader = loader;
// Hook the class if found, else try next classloader.
try{
//Override OnDismiss, so we can dismiss the login error dialog without the app closing
LoginFailedDialogFragment = Java.use("com.whatsapp.DisplayExceptionDialogFactory$LoginFailedDialogFragment");
LoginFailedDialogFragment.onDismiss.implementation = function() {};
}catch(error){
//wrong classloader
}
},
onComplete: function(){
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment